博客园主题美化(极简篇)

以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. 添加签名
原文地址:https://www.cnblogs.com/xinrong2019/p/12992327.html