子比主题网站底部统计美化

子比主题网站底部统计美化

美化效果

图片[1]-子比主题网站底部统计美化-李拜天博客

美化教程

1.在子比主题的主题目录下,header.php底部添加以下函数代码

注:函数运行日期2020-3-28改为你自己网站运行的日期。

2.在后台–>外观–>小工具–>自定义HTML,把自定义HTML放到合适的版块里(子比主题放在首页-底部全宽度),然后把下面代码复制粘贴进去,即可在前台显示。

<!--信息统计开始-->
<div id="nuandao">
    <div class="siteCount">
      <div class="wrapper">
        <ul>
          <li>
            <span>
<script type="text/javascript" >
document.write(tj_jstext);
</script>
</span>
            <b>用户总数</b>
          </li>
          <li>
            <span><script type="text/javascript" >
document.write(tj_rzzs);
</script></span>
            <b>文章总数</b>
          </li>
          <li>
            <span><script type="text/javascript" >
document.write(tj_view);
</script></span>
            <b>浏览总数</b>
          </li>
          <li>
            <span></span>
            <span>
<script type="text/javascript" >
document.write(tj_24h);
</script>
</span>
            <b>今日发布</b>
          </li>
          <li>
            <span><script type="text/javascript" >
document.write(tj_wdyx);
</script></span>
            <b>稳定运行</b>
          </li>
        </ul>
        <div class="join-vip">
          <a  href="/" target="_blank" style="background-image: linear-gradient(to right, #D279EE, #F8C390); text-align:center;" >立即加入</a>
         <p>加入星语的小木屋,快速获取优质IT资源!</p>
        </div>
      </div>
    </div>
  </div>
<style type="text/css">
 body{padding: 0px; margin: 0px;} *, *::before, *::after{box-sizing: border-box;} ol, ul{list-style: none;} a{color: inherit; text-decoration: none; vertical-align: top;}/*背景图*/#nuandao .siteCount{position: relative; padding: 60px 0; background: url(https://img.wiiuii.cn/tutu/007.jpg) center center / cover no-repeat fixed;}#nuandao .siteCount .cover{height: 100%; width: 100%; background: rgba(0, 0, 0, 0.6); position: absolute; top: 0; left: 0;}/*内容*/#nuandao .siteCount .wrapper{position: relative; z-index: 10; width: 1400px; max-width: 100%; margin: 0 auto;}#nuandao .siteCount ul{display: flex;}#nuandao .siteCount ul li{width: 20%; color: #fff; text-align: center;}/*模块*/#nuandao .siteCount ul li span{font-size: 48px; font-family: Arial;}#nuandao .siteCount ul li b{display: block; font-weight: normal; font-size: 14px;}/*按钮*/#nuandao .siteCount .join-vip{text-align: center; color: #fff; margin-top: 30px;}#nuandao .siteCount .join-vip a{display: inline-block; border: 0; border-radius: 5px; transition: all 0.3s; padding: 10px 30px; font-size: 15px; letter-spacing: 0.5px; background-color: var(--primary-color); background-image: -webkit-gradient( linear, left top, right top, from(#006eff), to(#13adff) ); background-image: -webkit-linear-gradient(left, #006eff, #13adff); background-image: -o-linear-gradient(left, #006eff 0, #13adff 100%); background-image: linear-gradient(90deg, #006eff, #13adff); -webkit-box-shadow: 0 5px 10px 0 rgba(16, 110, 253, 0.3); box-shadow: 0 5px 10px 0 rgba(16, 110, 253, 0.3); color: #fff;}#nuandao .siteCount .join-vip p{margin-top: 15px; font-size: 14px; color: rgba(255, 255, 255, 0.8); letter-spacing: 0.5px; font-family: Arial;}@media screen and (max-width: 768px){#nuandao .siteCount ul li span{font-size: 20px; font-family: Arial;}}
 </style>
<!--信息统计结束-->
© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容