/*去除博客园底部广告开始*/ div[id^="ad_"] { display: none; } div[class^="c_ad"] { display: none; } div[id^="under_post"] { display: none; } /*去除博客园底部广告结束*/  /*底部隐藏作者，隐藏推荐和反对*/ #author_profile { display: none; } /* 上一篇下一篇 */ #post_next_prev { font-size: 14px; color: #535353; } /* 禁用下划线 */ .postBody a:link, .postBody a:visited, .postBody a:active { text-decoration: none; } #div_digg { display: none; } /*隐藏广告*/ #ad_t2, #cnblogs_c1, #under_post_news, #cnblogs_c2, #under_post_kb { display: none; } #home { margin: 0 auto; width: 60%; min-width: 666px; // 写字板宽度设置 background-color: #fff; padding: 15px; // 文本离边框的距离设置 margin-top: 0px; // 白板距离上边框的距离 margin-bottom: 0px; // 白板距离下边框的距离 box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3); } #header { padding-bottom: 5px; margin-top: 10px; } #blogTitle { height: 0px; // 导航栏距离副标题（签名）的距离 clear: both; } #blogTitle h1 { font-size: 30px; font-weight: bold; line-height: 1.5em; margin-top: -17px; // 昵称距离顶部距离 } #blogTitle h1 a { color: #515151; } #blogTitle h1 a:hover { color: #21759b; } #blogTitle h2 { font-weight: normal; font-size: 30px; font-size: 0.928571429rem; line-height: 1.846153846; color: #757575; float: left; } #blogLogo { float: right; } #navigator { font-size: 13px; border-bottom: 1px solid #ededed; border-top: 1px solid #ededed; height: 50px; clear: both; margin-top: 25px; } #navList { min-height: 30px; float: left; } #navList li { float: left; margin: 0 40px 0 0; } #navList a { display: block; width: 5em; height: 22px; float: left; text-align: center; padding-top: 19px; } #navList a:link, #navList a:visited, #navList a:active { color: #6a6a6a; font-weight: bold; } #navList a:hover { color: #000; text-decoration: none; } .blogStats { float: right; color: #757575; margin-top: 19px; margin-right: 2px; text-align: right; }

#cnblogs_post_body table
{ 
  overflow:hidden;
  border:1px solid #d3d3d3;
  background:#fefefe;
  margin:0 auto;
  width: 95%;
  border-left: 10px;
  border-right: 10px;
  margin:5% auto 0;
  border-radius:5px;
  font-family: "consolas";
}
#cnblogs_post_body table td
{
  border: 0px;
  font-size: 14px;
  text-align: center;
  border-top:1px solid #e0e0e0;
  border-right:1px solid #e0e0e0;
}
#cnblogs_post_body table tr
{
  background: #F7F7F7
}
#cnblogs_post_body table th
{
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 15px;
  text-align: center;
  padding-top:5px; 
  text-shadow: 1px 1px 1px #fff; 
  background-color:#e8eaeb;
  border: 0px;
}

.cnblogs-markdown blockquote {
  margin: 0;
}
.cnblogs-markdown blockquote {
  padding: 0 15px;
  color: #777;
  border-left: 4px solid #DAF7A6;
  border-right: 0px solid #FFFFFF;
  border-top: 0px solid #FFFFFF;
  border-bottom: 0px solid #FFFFFF;
}

.cnblogs-markdown blockquote>:first-child {
  margin-top: 0;
}

.cnblogs-markdown blockquote>:last-child {
  margin-bottom: 0;
}

/* Monokai Sublime style. Derived from Monokai by noformnocontent https://nn.mit-license.org/ */
pre { /*控制代码不换行*/ white-space: pre; word-wrap: normal; }
.cnblogs-markdown .hljs { font-size: 13px!important; font-family: consolas,monospace !important; display: block; overflow-x: auto; padding: 0.5em; background: #23241f !important; color: #FFF; white-space: pre; word-break: normal; padding: 10px 15px !important; }

.hljs,
.hljs-tag,
.hljs-subst { color: #f8f8f2; }

.hljs-strong,
.hljs-emphasis { color: #a8a8a2; }

.hljs-bullet,
.hljs-quote,
.hljs-number,
.hljs-regexp,
.hljs-literal,
.hljs-link { color: #ae81ff; }

.hljs-code,
.hljs-title,
.hljs-section,
.hljs-selector-class { color: #a6e22e; }

.hljs-strong { font-weight: bold; }

.hljs-emphasis { font-style: italic; }

.hljs-keyword,
.hljs-selector-tag,
.hljs-name,
.hljs-attr { color: #f92672; }

.hljs-symbol,
.hljs-attribute { color: #66d9ef; }

.hljs-params,
.hljs-class .hljs-title { color: #f8f8f2; }

.hljs-string,
.hljs-type,
.hljs-built_in,
.hljs-builtin-name,
.hljs-selector-id,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-addition,
.hljs-variable,
.hljs-template-variable { color: #e6db74; }

.hljs-comment,
.hljs-deletion,
.hljs-meta { color: #75715e; }

.cnblogs-markdown code {
    font-family: "Courier New",sans-serif!important;
    font-size: 15px!important;
    line-height: 10px;
    background-color: #F0F8FF  !important;
    border: 0px solid #ccc!important;
    padding: 0 0px!important;
    border-radius: 3px!important;
    line-height: 1.5;
    margin: 1px 1px;
    vertical-align: middle;
    display: inline-block;
}

/*****home和头部开始**************************/
#home {
    margin: 0 auto;
    width: 72%;/*原始65*/
    min-width: 980px;/*页面的最低宽度,也就是页面顶部的宽度*/
    background-color: #fff;
    padding: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
    box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
}

/*博客标题*/
#blogTitle {
    height: 60px;  /*高度*/
    clear: both;
}
    /*主标题格式*/
    #blogTitle h1 {
        font-size: 26px;
        font-weight: bold;
        line-height: 1.8em;/*原始 1.6em*/
        margin-top: 10px;/*原始 15px */
    }

        #blogTitle h1 a {
            color: #515151;
        }
            /*超链接颜色*/
            #blogTitle h1 a:hover {
                color: #21759b;
            }
    /*次标题格式*/
    #blogTitle h2 {
        font-weight: normal;
        font-size: 16px;/*原始 16px ；font-size: 1.0rem;*/      
        line-height: 1.8;
        color: #757575;
        float: left;        
    }

#mainContent {
    min-height: 200px;
    padding: 0px 0px 10px 0;
    padding-top: 10px;/*原始10*/
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    float: left;
    margin-left: -22em;
    width: 100%;
    font-family:"微软雅黑" , "宋体" , "黑体" ,Arial;/*比较钟爱微软雅黑*/
    font-size: 13px;/*自己加的，不知道有冲突没有？*/
}
.day {    /*每日文章列表*/
    min-height: 10px;
    _height: 10px;
    margin-bottom: 20px;
    padding-bottom: 5px;
    position: relative;
}
/*日期标题，有的博客按照日期进行排列*/
.dayTitle {   
    display: none;
    border: 1px solid #21759b;
    background: azure;
    border-radius: 50%;
    font-size: 14px;
    height: 65px;
    line-height: 1.5;
    margin: 15px;
    text-align: center;
    width: 63px;
    margin-left: -100px;
    clear: both;
    position: absolute;
    top: -15px;
}
    .dayTitle a { /*日期标题的文字格式*/
        display: inline-block;
        color: #21759b;
        margin-top: 15px;
        width: 60px;
    }

<style type="text/css">
    #cnblogs_post_body
    {
        color: black;      
        font: 0.875em/1.5em "微软雅黑" , "PTSans" , "Arial" ,sans-serif;
        font-size: 16px;
    }
    #cnblogs_post_body h1    {
        background: #2B6695;
        border-radius: 6px 6px 6px 6px;
        box-shadow: 0 0 0 1px #5F5A4B, 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
        color: #FFFFFF;
        font-family: "微软雅黑" , "宋体" , "黑体" ,Arial;
        font-size: 17px;
        font-weight: bold;
        height: 25px;
        line-height: 25px;
        margin: 18px 0 !important;
        padding: 8px 0 5px 5px;
        text-shadow: 2px 2px 3px #222222;
    }
 #cnblogs_post_body h2{
        background: #2B6600;
        border-radius: 6px 6px 6px 6px;
        box-shadow: 0 0 0 1px #5F5A4B, 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
        color: #FFFFFF;
        font-family: "微软雅黑" , "宋体" , "黑体" ,Arial;
        font-size: 13px;
        font-weight: bold;
        height: 24px;
        line-height: 23px;
        margin: 12px 0 !important;
        padding: 5px 0 5px 10px;
        text-shadow: 2px 2px 3px #222222;
    }
</style>