zoukankan      html  css  js  c++  java
  • 博客园主题美化(极简篇)

    以BlueSky为模板

    TOC

    页面定制 CSS 代码

    .forFlow p {
        margin-bottom:0px;
    }
    .esa-post-signature {
        padding: 12px 24px 12px 30px;
        margin-top: 15px;
        margin-left: 5px;
        border-left- 4px;
        font-size: 15px;
        line-height: 2;
        border-left-style: solid;
        background-color: #f8f8f8;
        position: relative;
        border-bottom-right-radius: 2px;
        border-top-right-radius: 2px;
        border-left-color: #2D8CF0;
        z-index: 1;
    }
    
    .esa-post-signature:before {
        content: "!";
        background-color: #2D8CF0;
        position: absolute;
        top: 25px;
        left: -12px;
        color: #fff;
         20px;
        height: 20px;
        border-radius: 100%;
        text-align: center;
        line-height: 20px;
        font-weight: 700;
        font-size: 14px;
    }
    
    /*隐藏广告*/
        #site_nav_under {
        display:none;
    }
    .c_ad_block,.ad_text_commentbox {
        display:none;
        margin:0;
        padding:0;
    }
    #ad_under_google {
        height:0;
        overflow:hidden;
    }
    #ad_under_google a {
        display:none;
    }
    #ad_t2 {
        display:none;
    }
    #under_post_news {
      display:none;
    }
    

    页脚 HTML 代码

    <script type="text/javascript">
    var url = window.location.href;
    
    $(function(){
        //设置签名
       $('#MySignature .chuchu >a').attr("href", url);
       $('#MySignature .chuchu >a').html(url);
    
    });
    </script>
    

    签名

    签名设置方式参考基础篇

    总结

    1. 添加了去广告
    2. 添加签名
  • 相关阅读:
    vue 短期时间
    使用moment.js写一个倒计时
    使用moment.js
    js 共用文件内容应用
    什么是闭包?闭包的优缺点?
    卧龙阶段
    音阶
    初步理解1=C
    认识简谱的构造,唱名,音名

  • 原文地址:https://www.cnblogs.com/xinrong2019/p/12992327.html
Copyright © 2011-2022 走看看