2022年06月03日 22 阅读 技术 随机图片PHP 用下面的代码保存为index.php<?php $img=file('img.txt'); $url=array_rand($img); header("Location:&q...
2022年06月03日 24 阅读 技术 获取每日bing必应壁纸图片 <?php $str=file_get_contents('https://bing.com/HPImageArchive.aspx?idx=0&n=1'); if (pr...
2022年01月28日 18 阅读 技术 typecho面包屑导航 这是typecho社区文档给的官方方案<!--面包屑导航--> <div class="crumbs_patch" style="padding:...
2021年12月05日 48 阅读 技术 b站iframe宽度自适应 b站iframe插入视频大小是不能自适应的,所以用固定比例的方式使之适应网页宽度。固定长宽比例为16/9,保持宽度100%。/*b站iframe优化*/ .iframe_video{ ...
2021年11月30日 12 阅读 技术 全站变灰 添加自定义css到主题就行了,全站就会加上灰色滤镜。html{ -webkit-filter: grayscale(100%); filter: grayscal...
2021年11月05日 13 阅读 技术 typecho博客handsome主题博客信息添加全站字数、在线人数、访客总数和网站加载耗时 typecho博客handsome主题博客信息添加全站字数、在线人数、访客总数和网站加载耗时一首先以下代码放在/handsome/libs/Content.php class Content之...
2021年09月10日 14 阅读 技术 添加网页动态滚动进度条|滚动指示器 看到别人的博客网页顶部有一个页面翻动的进度条,页面滚动到哪里进度条也相应变动长短。自己也加了一个。以下代码最好放到主题head里<!--动态滚动进度条--> ...