Loading... <div class="tip share">请注意,本文编写于 1038 天前,最后修改于 540 天前,其中某些信息可能已经过时。</div> # 首先添加自定义CSS代码 1. **将下面的代码复制到 <code>主题设置-开发者设置-自定义CSS</code>** <div class="panel panel-default collapse-panel box-shadow-wrap-lg"><div class="panel-heading panel-collapse" data-toggle="collapse" data-target="#collapse-29a6631f39b55f66eca7c2469b269ddb68" aria-expanded="true"><div class="accordion-toggle"><span>代码如下 点击展开</span> <i class="pull-right fontello icon-fw fontello-angle-right"></i> </div> </div> <div class="panel-body collapse-panel-body"> <div id="collapse-29a6631f39b55f66eca7c2469b269ddb68" class="collapse collapse-content"><p></p> ``` /*底部页脚*/ .github-badge { display: inline-block; border-radius: 4px; text-shadow: none; font-size: 12px; color: #fff; line-height: 15px; background-color: #abbac3; margin-bottom: 5px } .github-badge .badge-subject { display: inline-block; background-color: #4d4d4d; padding: 4px 4px 4px 6px; border-top-left-radius: 4px; border-bottom-left-radius: 4px } .github-badge .badge-value { display: inline-block; padding: 4px 6px 4px 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px } .github-badge .bg-blue { background-color: #007ec6 } .github-badge .bg-orange { background-color: #ffa500 } .github-badge .bg-red { background-color: #f00 } .github-badge .bg-green { background-color: #3bca6e } .github-badge .bg-purple { background-color: #ab34e9 } ``` <p></p></div></div></div> # 添加底部博客信息 2. 将以下内容添加至 <code>开发者设置-博客底部左侧信息</code>,将内容改成自己的 <div class="panel panel-default collapse-panel box-shadow-wrap-lg"><div class="panel-heading panel-collapse" data-toggle="collapse" data-target="#collapse-5ef2bebe4e97e9c275e9220fae32eb1170" aria-expanded="true"><div class="accordion-toggle"><span>代码如下 点击展开</span> <i class="pull-right fontello icon-fw fontello-angle-right"></i> </div> </div> <div class="panel-body collapse-panel-body"> <div id="collapse-5ef2bebe4e97e9c275e9220fae32eb1170" class="collapse collapse-content"><p></p> ``` <div class="github-badge"> <a href="./" title="©2019 Alvin"> <span class="badge-subject">Copyright</span><span class="badge-value bg-blue">©2019 Alvin</span> </a> </div> | <div class="github-badge"> <a href="http://www.miitbeian.gov.cn/" target="_blank" title="粤ICP备 xxx号" style="cursor: url("/usr/plugins/HoerMouse/static/image/dew/link.cur"), pointer;"> <span class="badge-subject">粤ICP备</span><span class="badge-value bg-green">xxx号</span> </a> </div> ``` <p></p></div></div></div> 3. **将以下内容添加至 <code>开发者设置-博客底部右侧信息</code>** <div class="panel panel-default collapse-panel box-shadow-wrap-lg"><div class="panel-heading panel-collapse" data-toggle="collapse" data-target="#collapse-64a8c65e76f7429815152bb38f6cf0d945" aria-expanded="true"><div class="accordion-toggle"><span>代码如下 点击展开</span> <i class="pull-right fontello icon-fw fontello-angle-right"></i> </div> </div> <div class="panel-body collapse-panel-body"> <div id="collapse-64a8c65e76f7429815152bb38f6cf0d945" class="collapse collapse-content"><p></p> ``` <div class="github-badge"> <a href="http://www.typecho.org" target="_blank" title="由 Typecho 强力驱动" style="cursor: url("/usr/plugins/HoerMouse/static/image/dew/link.cur"), pointer;"> <span class="badge-subject">Powered</span><span class="badge-value bg-blue">Typecho</span> </a> </div> | <div class="github-badge"> <a href="https://www.ihewro.com/archives/489/" target="_blank" title="站点使用 handsome 主题,作者:友人C" style="cursor: url("/usr/plugins/HoerMouse/static/image/dew/link.cur"), pointer;"> <span class="badge-subject">Theme</span><span class="badge-value bg-orange">Handsome</span> </a> </div> ``` <p></p></div></div></div> # 修改footer.php文件 <div class="tip inlineBlock error"> 记得备份原文件 </div> 4. **修改 <code>handsome\component\footer.php</code>文件 <code>删除以下代码,大约在119行</code>** <div class="panel panel-default collapse-panel box-shadow-wrap-lg"><div class="panel-heading panel-collapse" data-toggle="collapse" data-target="#collapse-a4bc3d0a498b4ef1aeee5c9a725284ce29" aria-expanded="true"><div class="accordion-toggle"><span>代码如下 点击展开</span> <i class="pull-right fontello icon-fw fontello-angle-right"></i> </div> </div> <div class="panel-body collapse-panel-body"> <div id="collapse-a4bc3d0a498b4ef1aeee5c9a725284ce29" class="collapse collapse-content"><p></p> ``` Powered by <a target="blank" href="http://www.typecho.org">Typecho</a> | Theme by <a target="blank" href="https://www.ihewro.com/archives/489/">handsome</a> ``` <p></p></div></div></div> 5. **继续删除以下代码** <div class="panel panel-default collapse-panel box-shadow-wrap-lg"><div class="panel-heading panel-collapse" data-toggle="collapse" data-target="#collapse-8284e7c059af398542d73f77c7c1502641" aria-expanded="true"><div class="accordion-toggle"><span>代码如下 点击展开</span> <i class="pull-right fontello icon-fw fontello-angle-right"></i> </div> </div> <div class="panel-body collapse-panel-body"> <div id="collapse-8284e7c059af398542d73f77c7c1502641" class="collapse collapse-content"><p></p> ``` © <?php echo date("Y");?> Copyright ``` <p></p></div></div></div> **教程到此结束喜欢的点个赞吧!** 最后修改:2023 年 06 月 17 日 © 允许规范转载 赞 3 如果觉得我的文章对你有用,请随意赞赏
此处评论已关闭