网站底部的链接按钮美化教程

教程分为两步,添加 css 样式和添加 HTML 代码即可如下

202305301-1

 

1.子比主题设置—>自定义代码—>自定义 CSS 样式:,添加以下 CSS 代码:

/*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;
}
/*CSS 代码网站底部按钮美化结束 */

2、子比主题设置—>页面&显示—>底部页脚—>板块二,添加以下 HTML 代码:

<!--网站底部按钮美化 html 开始 -->
<div class="github-badge">
  <span class="badge-subject bg-blue">
     <a style="color:#fff" href="https://tools.chenyu.me/" target="_blank">工具箱</a>
  </span>-
  <span class="badge-subject bg-brightgreen">
     <a style="color:#fff" href="https://bbx.chenyu.me/" target="_blank">百宝箱</a>
  </span>-
  <span class="badge-subject bg-orange">
     <a style="color:#fff" href="https://my.chenyu.me/" target="_blank">实验室</a>
  </span>-
  <span class="badge-subject bg-green">
     <a style="color:#fff" href="https://chenyu.me/xqwy" target="_blank">心情微语</a>
  </span>-
    <span class="badge-value bg-blueviolet">
     <a style="color:#fff" href="https://my.chenyu.me/buddha/" target="_blank">与佛论禅</a>
  </span>-
</div>
<!--网站底部按钮美化 html 结束 by -->
© 版权声明
THE END
如果喜欢,可以【点赞】【分享】【收藏】
点赞6赞赏 分享
评论 抢沙发
头像
人生坎坎,山山而峦,不过尔尔;心路漫漫,水水而川,如此悠悠
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容