当前位置:奉上博客 » 站长之家 » 正文

7b2主题美化-网站底部添加自定义美化按钮

具体教程

链接自定义将以下代码放入宝塔面板b2主题>footer.php里面

搜索<div class=”footer-bottom-right”>放在这段代码上面即可

<div class="github-badge">
  <span class="badge-subject bg-blue">
     <a style="color:#fff" href="链接" target="_blank">啊吧啊吧</a>
  </span><span <a style="color:#0066ff"> -</a>
  <span class="badge-subject bg-brightgreen">
     <a style="color:#fff" href="链接" target="_blank">啊吧啊吧</a>
  </span><a style="color:#0066ff"> -</a>
  <span class="badge-subject bg-green">
     <a style="color:#fff" href="链接" target="_blank">啊吧啊吧</a>
  </span><a style="color:#0066ff"> -</a>
  <span class="badge-subject bg-orange">
     <a style="color:#fff" href="链接" target="_blank">啊吧啊吧</a>
  </span><a style="color:#0066ff"> -</a>
    <span class="badge-value bg-blueviolet">
     <a style="color:#fff" href="链接" target="_blank">啊吧啊吧</a>
  </span><a style="color:#0066ff"> -</a>
    <span class="badge-value bg-red">
     <a style="color:#fff" href="链接" target="_blank">啊吧啊吧</a>
</div>

将以下代码放入CSS样式中

/*底部开始*/
:root{--theme-color:#f04494;--focus-shadow-color:rgba(240,68,148,.4);--mian-max-width:1200px;}.github-badge {
    display: inline-block;
    border-radius: 4px;
    text-shadow: none;
    font-size: 12px;
    color: #fff;
    line-height: 15px;
    margin-bottom: 5px;
}
.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 .bg-blue {
    background-color: #007ec6;
}
.github-badge .bg-brightgreen {
    background-color: #4dc820;
}
.github-badge .bg-blueviolet {
    background-color: #8833d7;
}
.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-orange {
    background-color: orange;
}
.github-badge .bg-red {
    background-color: red;
}
/*底部结束*/

相关文章