iframe在页面中嵌入另一个网页:<iframe src="https://keemox.cn" width="100%" height="500" allowfullscreen sandbox> <p> <a href="https://keemox.cn"> 为不支持 iframe 的浏览器预留的后备链接 </a> </p> </iframe>
大家可能已经注意到了,我的博客主题为Sakurairo主题,这个主题有个显著的特点就是主页为随机展示的图片,后台需要填写随机图片api的地址,在经历了几个随机图片api网站关停的惨痛教训后,我萌生了自建一个类似网站的想法,说干就干,在网上通过查找发现主要实现方法有两种:1.本地存储,本地调用;2.外部储存,调用链接权衡之下,觉得第二种比较好处理,故采用调用链接的方法,下面我将详细介绍搭建教程。一、新建api.php文件<?php // 获取请求中的 category 参数 $category = isset($_GET['category']) ? $_GET['category'] : null; // 定义文件路径 $imgtxt_path = 'imgtxt/'; $default_pc_file = $imgtxt_path . 'pc-random.txt'; $default_mob_file = $imgtxt_path . 'mob-random.txt'; $default_file = $imgtxt_path . 'rimg.txt'; // 判断设备类
介绍几个页脚美化的代码块,内联潜入了css样式,你只需要放到footer.php或<footer/>标签内即可。1、备案信息</span> <span style="display: inline-flex; align-items: center; color: black; font-size: 14px;"> <a href="https://beian.miit.gov.cn" title="ICP备案查询" target="_blank" style="display: inline-flex; align-items: center; text-decoration: none; color: black;"><img src="https://origz.com/icpbeian.png" alt="ICP备案图标" style="height: 14px; marg
有多极简?下面就是效果。<!DOCTYPE HTML> <html> <head> <meta charset=UTF-8 /> <meta name=viewport content=width=device-width, initial-scale=1> <meta name=robots content=none /> <title>404 Not Found</title> <style> * { font-family: Microsoft Yahei; margin: 0; font-weight: lighter; text-decoration: none; text-align: center;
且莫何
清风徐来,水波不兴