1. 程式人生 > 實用技巧 >部落格園樣式美化(相容為知筆記)

部落格園樣式美化(相容為知筆記)

目錄

部落格園樣式美化(相容為知筆記)

參考:

參考使用了大神的樣式,又照著修改了一下

注:我平時使用為知筆記做筆記,為知筆記可以將筆記釋出為部落格園的部落格,所以程式碼部分的樣式很大一部分都是為了相容+調整為知筆記的程式碼樣式,裡面wiz

的css基本都是為了相容為知筆記的,不需要的可以試著刪掉

預覽


樣式優化

準備

注意,想要樣式修改,需要申請js許可權

  • 申請js許可權:管理--設定

  • 部落格面板:Custom

  • 選擇下面的禁用模板CSS

ennnnn,儲存之後,樣式就很醜了

  • 管理--選擇中選擇顯示的內容

    這一部分算是必選的,其他的...看需求吧

上傳檔案

樣式美化的時候使用這三個檔案,最好儲存到自己那裡,安全一點,畢竟可能我會刪掉,若是嫌麻煩,可以直接使用我的

css樣式

開啟設定,在css部分新增

@import url(https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css) screen and (min-width:0px);
@import url(https://at.alicdn.com/t/font_438759_kmvtb0te1nd.css) screen and (min-width:0px);
#cnblogs_post_body a {
    color: var(--ThemeColor);
    border-bottom: 1px solid var(--ThemeColor);
}
.wiz_toc_layer {
    display: none;
}
pre.prettyprint {
    background-color: #f5f5f5;
    margin: 10px 0;
}

pre.prettyprint.linenums {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
        background: aliceblue !important;
}
pre.prettyprint code.hljs{
    border: 0!important;
}
#cnblogs_post_body .linenums ol li {
    list-style-type: none;
}
#cnblogs_post_body .linenums ol{
    padding-left: 0.5em;
}
#cnblogs_post_body .linenums ol li .hljs {
    border-radius: 0;
    background: none!important;
    border: 0!important;
}

.CodeMirror-scroll {
    display: none;
}
.pln {
    color: #48484C;
}

.str {
    color: #DD1144;
}

.kwd {
    color: #1E347B;
}

.com {
    color: #93A1A1;
}

.typ {
    color: blueviolet;
/*font-weight: 700;*/
}

.lit {
    color: #195F91;
}

.pun {
    color: #48484C;
}

.opn {
    color: #93A1A1;
}

.clo {
    color: #93A1A1;
}

.tag {
    color: #008;
}

.atn {
    color: teal;
}

.atv {
    color: #DD1144;
}

.dec {
    color: teal;
}

.var {
    color: teal;
}

.fun {
    color: #DC322F;
}


/* 詩句 */
.poem {
    background: linear-gradient(to right, #90caf9, #047edf 99%);
    border-radius: 4px;
    color: #fff;
    padding: 40px 20px;
}

.poem #poem_sentence {
    text-align: center;
    font-size: 20px;
}

.poem #poem_info {
    text-align: right;
}

/** 捷徑 **/
.shortcut {
    overflow: hidden;
    border-radius: 4px;
    background: var(--BlockColor);
    word-break: break-all;
    z-index: 999999999999999999;
    transition: height 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
}

.shortcut h3 {
    margin: 20px 0;
    border-left: 4px solid var(--ThemeColor);
    padding-left: 10px;
}

#shortcutContent {
    padding: 0 !important;
    margin: 20px;
}

/*個人簽名*/
#MySignature {
    display: block !important;
}

/****** 提示訊息框 *******/
.infocard {
    border-radius: 4px;
    margin: 0 0 20px 0;
    padding: 10px;
    line-height: 2;
}

.infocard i {
    float: left;
    margin: 0 10px;
    vertical-align: middle !important;
}


.tip {
    background-color: #d5f1e5;

    color: #20704d;

}

.warning {
    background-color: #f9e8de;

    color: #a84229;
}

.normal {
    background-color: #dfedf8;

    color: #3162ae;
}

/* 摺疊 */
details {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: .5em .5em 0;
    margin: 10px 0;
}

summary {
    font-weight: bold;
    margin: -.5em -.5em 0;
    padding: .5em;
    outline: none;
    user-select: none;
    background-color: #eff3f5;
    border-radius: 4px;
}

details[open] {
    padding: .5em;
}

details[open] summary {
    border-bottom: 1px solid #ddd;
    margin-bottom: .5em;
    border-radius: 4px 4px 0 0;
}



/*** 全域性主題顏色 ***/
html {
    --ThemeColor: #2e73ff;
    --ThemeColorDark: #2d6dca;
    --AidColor1: #fa7d00;
    --AidColor2: #ff2e2e;
    --AidColor3: #36c67d;
    --TextColor1: #141418;
    --TextColor2: #5f5f6b;
    --TextColor3: #97979f;
    --DividColor: #e7eaf0;
    --BlockColor:#fff;
    --BackgroundColor: #f4f6fa;
    --text1: 28px;
    --text2: 26px;
    --text3: 24px;
    --text4: 22px;
    --text5: 20px;
    --text6: 18px;
}

#card {
    background-color: var(--BlockColor);
    border-radius: 8px;
    width: 100%;
    margin: 20px 0;
    border: 1px solid rgba(120, 130, 140, 0.13);
}

#card:hover {
    box-shadow: 6px 11px 41px -28px #a99de7;
}

#card p {
    margin: 0 !important;
}

#proBody center {
    background: rgba(0, 0, 0, .6);
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

#proBody {

    background-color: #000;
    filter: Alpha(opacity=80);
    border-radius: 8px 8px 0 0;
    background-image: url(https://img2018.cnblogs.com/blog/1489774/201910/1489774-20191020231410445-431305917.jpg);
    background-repeat: no-repeat;
    background-position: center;

}

#proBody img {
    width: 100px;
    border-radius: 50%;
    border: 1px solid #F0F8FF;
}

#proBody .name {
    font-size: 28px;
    color: white;
    font-weight: 700;
}

#proBody .sign {
    /*color: #8898aa;*/
    color: white;
}


#proBody .contact {
    background-color: #4d7cff;
    width: 200px !important;
    color: white;
    margin: 20px 0;
    padding: 10px 20px;
    border: 1px solid #4d7cff;
    border-radius: 80px;
    outline: none;
}

#proBody .contact:hover {
    opacity: 0.8;
}

#proFooter {
    columns: 3;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(120, 130, 140, 0.13);
}

#proFooter ul {
    margin-left: 0 !important;
}

#proFooter li {
    list-style: none !important;
    line-height: 2;
}

#proFooter li:nth-child(1),
#proFooter li:nth-child(2) {
    border-right: 1px solid rgba(120, 130, 140, 0.13);
}

/* 部落格底部功能*/
#div_digg {
    width: 220px !important;
}

.buryit:hover,
.diggit:hover {
    opacity: 0.8;
}

.diggit {
    background: none !important;
    color: white !important;
    background-color: var(--AidColor3) !important;
    border: 1px solid var(--AidColor3) !important;
    padding: 6px 10px;
    width: auto !important;
    height: auto !important;
    border-radius: 4px;
}

#digg_count {
    color: white !important;
}

.diggit:after {
    content: '推薦';
}

.buryit {
    background: none !important;
    color: white !important;
    background-color: var(--AidColor1) !important;
    border: 1px solid var(--AidColor1) !important;
    padding: 6px 10px;
    width: auto !important;
    height: auto !important;
    border-radius: 4px;
}

#bury_count {
    color: white !important;
}

.buryit:after {
    content: '反對';
}

/****博文簽名信息*****/
.myPostSignature {
    padding: 12px 24px 12px 30px;
    margin-top: 15px;
    margin-left: 5px;
    border-left-width: 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: var(--ThemeColor);
    z-index: 1
}

.myPostSignature:before {
    content: "!";
    background-color: var(--ThemeColor);
    position: absolute;
    top: 25px;
    left: -12px;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    text-align: center;
    line-height: 20px;
    font-weight: 700;
    font-size: 14px
}

.myPostSignature p {
    margin: 0 !important;
    word-wrap: break-word;
    word-break: break-all;
    overflow: hidden;
}



/*************/
/********** 適配360以上的移動端 **********/
@media only screen and (min-width: 361px) and (max-width: 767px) {

    /*相簿*/
    #ViewPicture1_GalleryImage {
        max-width: 100% !important;
    }

    /* 內容板塊 */
    #mainContent {
        float: left !important;
        margin-left: 0;
    }

    #main {
        margin: 20px auto 20px auto;
        padding: 0 !important;
        width: 1200px !important;
    }


    #sideBar {
        float: right !important;
        width: 260px !important;
    }

    /* 底部頁腳板塊 */
    #footer,
    #page_end_html {
        width: 1200px !important;
    }

    #sidebar_search_box input[type=text] {
        width: 140px !important;
    }

    #headbox {
        width: 100% !important;
        display: inline-block;
        /*padding: 0 5px;*/
        min-width: initial !important;
    }

    #green_channel {
        width: 100% !important;
        display: none;
    }
}

/********** 適配360以下的移動端 **********/
@media only screen and (max-width: 360px) {
    #header .dropdown li {
        line-height: 2.8 !important;
        margin-left: 4px;
    }

    #green_channel {
        width: 100% !important;
    }

    #header,
    #headbox {
        width: 100% !important;
        display: inline-block;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        min-width: initial !important;
    }

    #comment_form {
        margin: 0 !important;
        padding: 0 !important;
    }

    .day .postDesc {
        display: none !important;
    }

    #blogTitle {
        width: initial !important;
        margin-right: 10px !important;
    }

    .avatar {
        width: 50px !important;
    }

    .mytoolbar {
        position: fixed;
        z-index: 9999999999;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px;
        font-size: 20px;
        background-color: var(--BlockColor);
        border-top: 1px solid var(--DividColor);
    }

    #sidebar_scroller {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 20px;
        width: 90% !important;
        display: none;
        border-bottom: 1px solid #eee;
        z-index: 9999999999999999;
    }

    .mytoolbar #toolbtn {
        columns: 3;
        margin-left: 0 !important;
        /*padding: 10px 0;*/
    }

    .mytoolbar #toolbtn li {
        text-align: center;
        list-style-type: none !important;
        line-height: 18px;
    }

    .c_b_p_desc .desc_img,
    .entrylistItem .desc_img,
    .day .desc_img {
        float: none;
        margin: 20px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #mainContent .c_b_p_desc {
        display: grid !important;
    }

    .c_b_p_desc a {
        margin: 10px 0 !important;
        /*width: 94% !important;*/
        line-height: 30px !important;
        text-align: center;
        padding: 4px 9px !important;
        color: #313131 !important;
        background-color: #ededed !important;
        border: 1px solid #ededed !important;
        font-size: 14px !important;
        height: 30px !important;
        float: left !important;
    }

    .c_b_p_desc a:hover {
        border: 1px solid #2080f7 !important;
        background-color: #fff !important;
    }

    .btn_my_zzk {
        /*display: none !important;*/
    }

    #header .dropdown {
        float: right;
        margin-right: 20px;
    }

    #header .dropdown-content {
        margin-left: -70px;
    }

    #header li {
        list-style: none;
        padding: 0 6px;
    }



    #navigator .div_my_zzk {
        float: left !important;
    }

    #navigator .input_my_zzk {
        width: 160px !important;
    }

    #home,
    #main {
        width: initial !important;
        /*padding:0!important;*/
        /*min-width:min-content!important;*/
    }

    #mainContent,
    #footer,
    #page_end_html {
        width: initial !important;
        min-width: initial !important;
    }

    #sideBar {
        width: initial !important;
        margin-left: 0 !important;
    }

    #navList {
        display: flex;
        margin-right: 20px;
    }

    #navList li {
        float: left;
        list-style: none;
        margin: 0 !important;
    }
}




/********** 全域性樣式 **********/
* {
    margin: 0;
    padding: 0
}





body {
    background-color: var(--BackgroundColor);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 1px;
}

div {
    display: block
}

a {
    text-decoration: none;
    color: inherit;
    /*color: var(--TextColor1)*/
}

a:hover {
    color: var(--ThemeColor);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--TextColor1)
}





/********** 頁面佈局 **********/




/***** 主介面 *****/
#home {
    width: 100%;
    margin: 0 auto;
}



/***** 導航欄(上) *****/
#header {
    height: 50px;
    line-height: 50px;
    background-color: var(--BlockColor);
    margin: 0 auto;
    width: 1200px;
    display: flex;
    /*box-shadow: rgba(0, 0, 0, 0.1) 0 1px 2px;*/
    /*position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;*/
}


/***** 主機板塊(中) *****/

/** 主機板塊 **/
#main {
    width: 100%;
    width: 1200px;
    margin: 20px auto 20px auto;
    /*display: flex;*/
}


/** 主要內容(中左) **/
#mainContent {
    width: 900px;
    float: left;
    /*flex:1;*/
    /*background-color: var(--BlockColor);*/
    padding: 0px;
    border-radius: 2px
}

/** 側邊欄(中右) **/
#sideBar {
    width: 280px;
    margin-left: 20px;
    float: left
}

/***** 頁尾(下) *****/
#footer {
    width: 100%;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    color: var(--TextColor3);
}

#viewcount {
    width: 100%;
    color: var(--TextColor3);
    text-align: center;
    margin-bottom: 20px;
}

/***** 導航欄內容佈局 *****/
/** 部落格暱稱 **/
#lnkBlogLogo {
    display: none;
}

/** 部落格暱稱 **/
#blogTitle h1 {
    width: auto;
    /*max-width:100px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;*/
    font-size: 20px;
    line-height: 50px;
    margin: auto 20px;
}

#blogTitle h2 {
    display: none;
}

/** 導航按鈕 **/
#navigator {
    flex: 1;
    line-height: 50px;
    margin: 0 20px 0 0;
}

#navList li {
    float: left;
    list-style: none;
    margin: 0 10px;

}

#navList li a {
    padding: 13px 0;
}

#navList li a:hover {

    border-bottom: 3px solid var(--ThemeColor);

}

/** 部落格狀態 **/
.blogStats {
    float: right;
    display: none;
}





/***** 主要內容佈局 *****/
/* 當日文章 */
.day {
    background-color: var(--BlockColor);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.day .postTitle {
    border-top: 1px solid var(--DividColor);
    margin-top: 10px;
    padding-top: 10px;
}

/* 釋出日期 */
.dayTitle {
    line-height: 2.4;
    width: 100%;
    font-size: var(--text6);
    color: var(--TextColor1);
    /*border-bottom: 1px solid var(--DividColor);*/
}

/* 文章標題 */
.day .postTitle2 {
    font-size: var(--text4);
    line-height: 2.4;
    /*color: var(--TextColor1);*/
    padding-left: 10px;
    border-left: 4px solid var(--ThemeColor);
}

#topics .postTitle {
    line-height: 1.2;
    text-align: center;
    padding: 0 0 20px 0;
    margin-bottom: 20px;
}

#topics .postDesc,
#topics #BlogPostCategory {
    line-height: 2.4;
}

/* 文章內容 */
.c_b_p_desc {
    color: var(--TextColor2);
    line-height: 1.5;
}

/* 文章釋出相關資訊 */

.postDesc,
.post .postBody #BlogPostCategory,
#EntryTag {
    color: var(--TextColor3);
    font-size: 14px;
    line-height: 2;
    margin: 0;
}

/* 文章摘要圖片 */
.desc_img {
    max-height: 150px;
    max-width: 300px;
    margin-left: 20px;
}



/***** 側邊欄內容佈局 *****/

/** 側邊欄板塊標題 **/
#sideBar h3 {
    line-height: 2.4;
    width: 100%;
    margin-bottom: 10px;
    font-size: var(--text6);
    color: var(--TextColor1);
    border-bottom: 1px solid var(--DividColor);
}

/*** 公告欄面板 ***/
/*個人資訊*/
.myprofile {
    margin: 20px 0 0 0;
    /*display: table;*/
    /*width:100%;*/
    height: auto;
}

.myprofile-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--DividColor);
}

.myprofile-top {
    display: inline-flex;
    margin: 0px auto 20px auto;
}

.avatar {
    width: 80px;
    float: left;
}

.avatar img {
    width: 100%;
    /*height: 100%;*/
    border: 1px solid #ddd;
    border-radius: 50%;
}

.profile-info {
    float: left;
    margin-left: 20px;
}

.nickname {
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
}

#mywords {
    line-height: 20px;
    font-size: 12px;
}

.myprofile ul {
    columns: 3;

}

.myprofile ul li {
    text-align: center;
    list-style-type: none;
    line-height: 20px;

}

#sidebar_news {
    background-color: var(--BlockColor);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 公告欄資訊 */
#profile_block {
    line-height: 2;
}

/* 加關注 */
#p_b_follow {
    background-color: var(--ThemeColor);
    border-radius: 4px;
    margin: 10px 0;
    line-height: 2;
    text-align: center;

}

#p_b_follow:hover {
    background-color: var(--ThemeColorDark);
}


/* 關注成功 */
#p_b_follow a,
#p_b_follow span {

    color: white !important;
}

/* 日曆面板 */
#blog-calendar {
    background-color: var(--BlockColor);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 日曆翻頁 */
.CalTitle {
    line-height: 2.4;
    font-size: var(--text6);
    color: var(--TextColor1);
}

/* 日曆星期 */
.CalDayHeader {
    line-height: 2.4;
    font-size: var(--text6);
    color: var(--TextColor1);
    border-bottom: 1px solid var(--DividColor);
}

/* 日曆每天 */
.CalWeekendDay {
    line-height: 2;
}

/* 日曆今天 */
.CalTodayDay u,
.CalTodayDay {
    color: #fff !important;
}

#blog-calendar u {
    color: var(--ThemeColor);
    font-weight: 600;
    text-decoration: none !important;
}

.CalTodayDay {
    background-color: var(--ThemeColor);
    line-height: 2.15;
    border-radius: 50%;
    height: 34px !important;
    width: 34px !important;
}


/* 搜尋面板 */
.mySearch {
    background-color: var(--BlockColor);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/***** 搜尋框 *****/
#sidebar_search_box .input_my_zzk {
    padding: 6px;
    outline: none;
    margin-left: 5px;
    background: var(--BackgroundColor);
    border: 1px solid var(--DividColor);
    border-radius: 4px;
    width: 145px;
    vertical-align: middle;
    height: 20px;
}

input.btn_my_zzk {
    color: #fff;
    background-color: var(--ThemeColor);
    border-color: var(--ThemeColor);
    border: 1px;
    padding: 8px;
    border-radius: 2px;
    height: auto !important;
}

input.btn_my_zzk:hover {
    outline: none;
    opacity: .7
}


/******** 導航目錄 *********/
.scroller-offset1 {
    text-indent: 0;
    overflow: hidden;
    text-overflow: ellipsis !important;
}

.scroller-offset2 {
    text-indent: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis !important;
}

.scroller-offset3 {
    text-indent: 3em;
    overflow: hidden;
    text-overflow: ellipsis !important;
}

.scroller-offset4 {
    text-indent: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis !important;
}

.scroller-offset5 {
    text-indent: 6em;
    overflow: hidden;
    text-overflow: ellipsis !important;
}

.scroller-offset6 {
    text-indent: 7.5em;
    overflow: hidden;
    text-overflow: ellipsis !important;
}

.nav .active {
    background-color: var(--BackgroundColor);
    /*border-radius: 2px;
    margin: 0 6px;*/
}

.nav .active a {
    color: var(--ThemeColor);
}

.nav {
    max-height: 400px;
    overflow-y: auto;
    /*padding:10px;*/
    overflow-x: hidden;
    white-space: nowrap;
}

.nav li {
    padding: 2px 10px;
}

.nav li a {
    text-overflow: ellipsis !important;
    width: 100px !important;
    white-space: nowrap;
}

/* 常用連結 */
/* 最新隨筆 */
/*我的標籤 */
/* 積分排名 */
/* 隨筆分類 檔案分類 */
/* 最新評論 */
/* 閱讀排行 */
/* 評論排行 */
/* 推薦排行 */
/* 目錄 */
#sidebar_shortcut,
#sidebar_articlearchive,
#sidebar_imagecategory,
#sidebar_recentposts,
#sidebar_toptags,
#sidebar_scorerank,
#sidebar_postcategory,
.catList.sidebar-block,
#sidebar_postarchive,
#sidebar_recentcomments,
#sidebar_topviewedposts,
#sidebar_topcommentedposts,
#sidebar_topdiggedposts,
/*#sidebar_categories,*/
#sidebar_articlecategory,
#sidebar_scroller {
    background-color: var(--BlockColor);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

#sidebar_shortcut ul li,
#sidebar_articlearchive ul li,
#sidebar_imagecategory ul li,
#sidebar_recentposts ul li,
#sidebar_toptags ul li,
#sidebar_scorerank ul li,
#sidebar_postcategory ul li,
#sidebar_postarchive ul li,
#sidebar_recentcomments ul li,
#sidebar_topviewedposts ul li,
#sidebar_topcommentedposts ul li,
#sidebar_topdiggedposts ul li,
.catList.sidebar-block ul li,
#sidebar_articlecategory ul li,
#sidebar_scroller ul li {
    list-style: none;
    line-height: 2;
}


/**** 翻頁 *****/
#nav_next_page {
    margin-bottom: 20px;
}

.topicListFooter {
    margin: 0px !important;
}

.topicListFooter,
.pager {
    line-height: 3;
    overflow-x: auto;
    display: block !important;
}

.topicListFooter a,
.Pager a {
    background-color: var(--BlockColor);
    padding: 6px 10px;
    display: inline-table;
    line-height: 1.5;
    color: var(--TextColor1);
    border: 1px solid var(--DividColor);
    border-radius: 4px;
}

.topicListFooter a:hover,
.Pager a:hover {
    color: white;
    border: 1px solid var(--ThemeColor);
    background-color: var(--ThemeColor);
}

.pager,
.Pager {
    font-size: 16px;
    color: var(--TextColor2);
}

/* 我的隨筆板塊系列 */
#taglist_main {
    margin-top: 0 !important;
}

/* 隨筆簡介圖片 */
.filter_img {
    width: 100% !important;
    margin: 20px 0 0 0 !important;
    max-height: none !important;
    display: inline-block !important;
    max-width: none !important;
    border-radius: 4px !important;
}

.PostListTitle,
#taglist_title {
    line-height: 2.4;
    font-size: var(--text1);
    color: var(--TextColor1);
    padding: 20px 0;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
}

#taglist {
    background-color: var(--BlockColor);
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

/* 我的隨筆內容 */
#myposts {
    margin: 0 !important;
}

.PostList {
    background-color: var(--BlockColor);
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0 20px 0 !important;
}

.PostList .postTitl2 {
    font-size: var(--text4);
    line-height: 2.4;
    color: var(--TextColor1);
}

.postTitl2 a {
    padding-left: 10px;
    border-left: 4px solid var(--ThemeColor);
}

.PostList .postDesc2 {
    color: var(--TextColor3);
    font-size: 14px !important;
    line-height: 3;
}

.PostList .postText2 {
    color: var(--TextColor2);
    font-size: var(--text6) !important;
    line-height: 1.5;
}

/*** 相簿 ****/
.gallery {
    background-color: var(--BlockColor);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.gallery .thumbTitle {
    line-height: 2.4;
    width: 100%;
    font-size: var(--text1);
    color: var(--TextColor1);

}

.gallery img {
    max-width: 100%;
}

.divPhoto {
    margin: 10px;
}

.table-box {
    line-height: 2.4;
    font-size: var(--text1);
    color: var(--TextColor1);
    padding: 20px 0;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
}

/* 隨筆檔案 */
.entrylist {
    background-color: var(--BlockColor);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.entrylistItem {
    border-top: 1px solid var(--DividColor);
    margin-top: 10px;
    padding-top: 10px;
}

.entrylistTitle {
    line-height: 2.4;
    width: 100%;
    font-size: var(--text1);
    color: var(--TextColor1);
    /*border-bottom: 1px solid var(--DividColor);*/
}

.entrylistPosttitle {
    font-size: var(--text4);
    line-height: 2.4;
    color: var(--TextColor1);

}

.entrylistItemTitle {
    padding-left: 10px;
    border-left: 4px solid var(--ThemeColor);
}

.entrylistPostSummary {
    color: var(--TextColor2);
    line-height: 1.5;
}

.entrylistDescription {
    /*padding-bottom: 20px;*/
}

.entrylistItemPostDesc {
    color: var(--TextColor3);
    font-size: 14px;
    line-height: 3;
}

/* 搜尋框 */
#widget_my_zzk,
#widget_my_google {
    display: flex;
    font-size: 16px !important;
}

.input_my_zzk {
    flex: 1;
    float: left;
}

.btn_my_zzk {
    /*width: 70px;*/
}


/********** 部落格正文 **********/
#topics {
    background-color: var(--BlockColor);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 博文標題 */
#cb_post_title_url {
    font-size: var(--text2);
}

#topics .postTitle {
    border-bottom: 1px solid var(--DividColor);
}

/* 博文底部功能按鈕 */

#blog_post_info {
    margin: 40px auto;
}

#green_channel {
    border: none !important;
    width: 100%;
    display: none !important;
    margin: 20px 0 !important;
}

#div_digg {
    float: none;
    margin: 0 auto;
}

#author_profile {
    display: none;
}

#green_channel a {
    background: url();
    font-size: 14px !important;
    text-shadow: none !important;
}

#green_channel #green_channel_digg {
    color: white !important;
    background-color: var(--AidColor3) !important;
    border: 1px solid var(--AidColor3) !important;
    padding: 6px 10px;
    -webkit-border-radius: 4px;
    margin: 10px !important;
    -webkit-box-shadow: none !important;
}

#green_channel #green_channel_follow {
    color: white !important;
    background-color: var(--AidColor2) !important;
    border: 1px solid var(--AidColor2) !important;
    padding: 6px 10px;
    -webkit-border-radius: 4px;
    margin: 10px !important;
    -webkit-box-shadow: none !important;
}

#green_channel #green_channel_favorite {
    color: white !important;
    background-color: var(--AidColor1) !important;
    border: 1px solid var(--AidColor1) !important;
    padding: 6px 10px;
    margin: 10px !important;
    -webkit-border-radius: 4px;
    -webkit-box-shadow: none !important;
}

#green_channel #green_channel_weibo {
    color: var(--TextColor1) !important;
    background-color: #fff !important;
    border: 1px solid #adadad !important;
    padding: 6px 10px;
    -webkit-border-radius: 4px;
    margin: 10px !important;
    -webkit-box-shadow: none !important;
}

#green_channel #green_channel_weibo:hover {
    background-color: #e6e6e6 !important;
}

#green_channel_weibo img {
    margin-left: 0 !important;
}

#green_channel #green_channel_wechat {
    color: var(--TextColor1) !important;
    background-color: #fff !important;
    border: 1px solid #adadad !important;
    padding: 6px 10px;
    -webkit-border-radius: 4px;
    margin: 10px !important;
    -webkit-box-shadow: none !important;
}

#green_channel #green_channel_wechat:hover {
    background-color: #e6e6e6 !important;
}

#green_channel_wechat img {
    margin-left: 0 !important;
}

/*** 博主資訊 ***/
#author_profile_info .author_avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    padding: 0 !important;
}

/****** 上下文 *****/
#post_next_prev {
    border-top: 1px solid var(--DividColor);
    font-size: 14px;
    line-height: 1.8;
    padding-top: 20px;
    color: var(--TextColor1);
}


/********** 去廣告 **********/
#ad_c1,
#ad_c2,
#ad_t2,
.c_ad_block {
    display: none
}


/********** 評論 **********/
/*頭像*/
.body_right img {
    border: 1px solid var(--DividColor);
}

/* 評論記錄面板 */
#blog-comments-placeholder {
    background-color: var(--BlockColor);
    border-radius: 4px;
    margin-bottom: 20px;
}

/*提交評論後*/
#divCommentShow {
    background-color: var(--BlockColor);
    border-radius: 4px;
    margin-bottom: 20px;
}

.comment_my_posted {
    padding: 20px;
}

.bq_post_comment {

    margin: 5px;
    font-style: normal;
    line-height: 2;
    border: none;
    color: var(--TextColor2);
    padding: 10px;
}

/* 評論小人 */
#tbCommentAuthor {
    width: 100px;
}

.blog_comment_body {
    word-wrap: break-word;
    overflow: hidden;
    background-color: var(--BackgroundColor);
    padding: 10px 20px;
    border-radius: 4px;
}

/*評論引用 */
.comment_quote {
    padding: 5px 5px 5px 10px;
    border: 1px solid #ccc;
    color: #ccc;
    border-width: 0px 0px 0px 4px;
}

legend {
    display: none;
}

/* 評論列表標題 */
.feedback_area_title {
    font-size: var(--text6);
    color: var(--TextColor1);
    line-height: 2;
    background-image: none;
    border-bottom: 1px solid var(--DividColor);
    padding: 0;
    margin: 0 20px;
    font-weight: 700;
}

/* 完整的評論塊 */
.feedbackItem {
    margin: 0 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--DividColor);
}

/* 刪除修改評論 */
.feedbackManage {
    float: right;
}

.blog_comment_body {
    line-height: 2;
    color: var(--TextColor2);
    margin: 10px 0;
}

/* 評論重新整理 */
#comment_nav {
    line-height: 3;
    padding-right: 20px;
    color: var(--TextColor1);
}

/* 評論翻頁 */
#comment_pager_bottom {
    padding: 20px;
}

/* 評論面板 */
#comment_form_container {
    background-color: var(--BlockColor);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 評論標題 */
#commentform_title {
    font-size: var(--text6);
    color: var(--TextColor1);
    line-height: 2;
    background-image: none;
    border-bottom: 1px solid var(--DividColor);
    padding: 0;
    font-weight: 700;
}

#comment_form_container p {
    line-height: 2;
}

.commentbox_main {
    margin-top: 20px;
}

.commentbox_title {
    width: 100%;
}

/** 評論區打字框 */
#tbCommentBody {
    margin-top: 10px;
    width: 100% !important;
    height: 200px !important;
    border: 1px solid var(--DividColor);
    border-radius: 6px;
    padding: 5px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
    background-color: transparent;
    color: var(--TextColor1);
}

.commentform .comment_textarea:focus {
    outline: 0
}

.commentform .comment_textarea:hover {
    border-color: var(--ThemeColor);
}

/* 提交評論按鈕 */
#btn_comment_submit {
    width: auto;
    height: auto;
    border-width: 0;
    cursor: pointer;
    color: #fff;
    background-color: var(--ThemeColor);
    border-color: var(--ThemeColor);
    user-select: none;
    padding: 5px 20px;
    font-size: 12px;
    border-radius: 5px;
    transition: color .2s linear, background-color .2s linear, border .2s linear, box-shadow .2s linear
}

#btn_comment_submit:hover {
    opacity: .7
}

/* 提示文字 */
#comment_form_container p:nth-of-type(3) {
    color: var(--TextColor2);
}


/******** 相關博文 ************/
#under_post_news {
    background-color: var(--BlockColor);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

#HistoryToday,
.recomm-block {
    max-width: 100%;
}

.recomm-block b {
    font-size: var(--text6);
    color: var(--TextColor1);
    line-height: 2.4;
    padding: 0;

}

.recomm-block a {
    width: 100%;
}


/********** 部落格正文定製 **********/

.post .postBody {
    line-height: 1.7;
    color: var(--TextColor1);
}

.post .postBody h1 {
    font-size: 32px !important;
    margin-top: 24px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid var(--DividColor);
    line-height: 1.25;
    padding-bottom: .3em
}

.post .postBody h2 {
    font-size: 24px !important;
    border-bottom: 1px solid var(--DividColor);
    margin-top: 24px !important;
    margin-bottom: 16px !important;
    line-height: 1.25;
    padding-bottom: .3em
}

.post .postBody h3 {
    font-size: 20px !important;
    margin-top: 24px !important;
    margin-bottom: 16px !important;
    line-height: 1.25;
}

.post .postBody h4 {
    font-size: 16px !important;
    margin-top: 24px !important;
    margin-bottom: 16px !important;
    line-height: 1.25;
}


.post .postBody h5 {
    font-size: 14px !important;
    margin-top: 24px !important;
    margin-bottom: 16px !important;
    line-height: 1.25;
}

.post .postBody h6 {
    font-size: 13.6px !important;
    margin-top: 24px !important;
    margin-bottom: 16px !important;
    line-height: 1.25;
}

.post .postBody p {
    margin: 17px auto
}

.post .postBody blockquote {
    border: none;
    color: #6a737d;
    margin: 20px 0;
    padding: 0 0 0 10px;
    min-height: 20px;
    background: 0 0;
    border-left: 4px solid #ccc; /*引用的左側的邊框*/
    /*#dfe2e5*/
    background: #f5f5f5;
}

#cnblogs_post_body {
    margin: 20px 0;
}

#cnblogs_post_body blockquote ul li {
    color: #6a737d !important;
}

#cnblogs_post_body img {
    margin: 0 auto;
}

.post .postBody em {
    padding-right: 3px
}

.post .postBody strong {
    margin: 0 3px
}

.post .postBody img {
    max-width: 100% !important;
    display: block;
    border-radius: 3px
}

.post .postBody ol li,
.post .postBody ul li {
    margin: 3px 0;
    font-size: 15px;
}

.post .postBody ol li p,
.post .postBody ul li p {
    margin: 0 !important
}

#cnblogs_post_body table {

    display: table !important;
}

.post .postBody table {
    font-size: 15px;
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    border: none !important;
    overflow: auto;
    width: 100%;
    word-break: keep-all !important;
}

.post .postBody table th {
    font-family: inherit;
    font-size: inherit;
    background-color: var(--BackgroundColor) !important;
    white-space: nowrap;
    font-weight: 600;
    border: 1px solid var(--DividColor) !important;
    padding: 8px 16px !important
}

.post .postBody table tr:nth-child(2n) {
    background-color: var(--BackgroundColor) !important;
}

.post .postBody table tr {
    background-color: var(--BlockColor) !important;
}

.post .postBody table td {
    border: 1px solid var(--DividColor) !important;
    padding: 8px 16px !important;
}

.post .postBody h1 code,
.post .postBody h2 code,
.post .postBody h3 code,
.post .postBody h4 code,
.post .postBody h5 code,
.post .postBody h6 code,
.post .postBody li code,
.post .postBody p code,
.post .postBody table code {
    color: #c7254e;
    line-height: 1;
    font-family: consolas !important;
    vertical-align: middle;
    margin: 0 3px;
    background: aliceblue !important;
    font-size: 14px !important;
    padding: .2em .3em !important;
    border-radius: 3px !important;
    border: 1px solid var(--DividColor) !important
}



.post .postBody #BlogPostCategory a {
    margin-left: 5px
}


.post .postBody #post_next_prev {
    font-size: 16px;
    margin-top: 20px;
    padding-top: 20px;
}

.post .postBody hr {
    background-color: var(--DividColor);
    border: 0;
    height: .25em;
    margin: 24px 0;
    padding: 0;
}

#cnblogs_post_body ul ul li {
    list-style-type: circle;
}

#cnblogs_post_body ul ul ul li {
    list-style-type: square !important;
}

.post .postBody ul ul ul {
    list-style-type: square !important;
}

.post .postBody ul ul {
    list-style-type: circle !important;
}

.post .postBody ul {
    list-style-type: disc !important;
}

.cnblogs_code {
    background-color: #f2f4f5;
    padding-left: 1em;
    padding-right: 1em;
    border: none !important;
    border-radius: 3px !important;
    font-family: Lucida Console, Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace !important
}

.cnblogs_code div {
    background-color: transparent;
    color: #656c73
}

.cnblogs_code img {
    margin: 0 !important
}

.cnblogs_code pre {
    color: #656c73;
    font-family: inherit !important
}

.cnblogs_code pre span {
    font-family: inherit !important;
    color: inherit !important
}

.cnblogs_code textarea {
    font-family: inherit !important;
    padding: 5px;
    border: 1px solid #3e4c42;
    color: #c5d4ef;
    background-color: #282c34
}

.cnblogs_code textarea:focus {
    outline: 0
}

.cnblogs_code .code_img_closed,
.cnblogs_code .code_img_opened {
    display: none !important
}

.cnblogs_code .cnblogs_code_toolbar {
    width: 20px
}

.cnblogs_code .cnblogs_code_toolbar span {
    padding-right: 0
}

.cnblogs_code .cnblogs_code_toolbar a:link img {
    background-color: transparent !important
}

.cnblogs_code .cnblogs_code_collapse {
    color: #656c73;
    border: 1px solid #989fa6;
    border-radius: 2px;
    background-color: transparent;
    display: inline-block;
    cursor: pointer;
    padding: 5px 5px 2px 5px
}

/* markdown 鍵盤關鍵字 */
kbd {
    margin: 0 .1em;
    padding: .1em .6em;
    font-size: .8em;
    color: #242729;
    background: #fff;
    border: 1px solid #adb3b9;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(12, 13, 14, .2), 0 0 0 2px #FFF inset;
    white-space: nowrap;
    vertical-align: middle;
}

/********** 程式碼語法高亮 **********/
/***** MATLAB語法高亮方案 *****/
.matlab .hljs-keyword {
    color: #0000fe;
}

.matlab .hljs-string {
    color: #a020ef;
}

.matlab .hljs-comment {
    color: #228b22;
}

.matlab .hljs-built_in,
.matlab .hljs-function,
.matlab .hljs-title {
    color: var(--TextColor1);
}



/*********** 其他程式碼語法高亮 **********/
.cnblogs-markdown .hljs,
.cnblogs-markdown .matlab-code,
.cnblogs_Highlighter pre {
    display: block;
    color: var(--TextColor1);
    border-radius: 4px;
    overflow-x: auto;
    /* background: var(--BackgroundColor) !important;*/
background: aliceblue !important;
    border: none !important;
    font-family: 'Microsoft YaHei', 'SF Pro Display', Roboto, Noto, Arial, 'PingFang SC', sans-serif !important;
    padding: 1em !important;
    font-size: 14px !important
}

.cnblogs-markdown pre {
    white-space: pre;
}

.hljs-comment,
.hljs-meta {
    color: #969896
}

.hljs-emphasis,
.hljs-quote,
.hljs-string,
.hljs-strong,
.hljs-template-variable,
.hljs-variable {
    color: #df5000
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-type {
    color: #a71d5d
}

.hljs-attribute,
.hljs-bullet,
.hljs-literal,
.hljs-symbol {
    color: #0086b3
}

.hljs-name,
.hljs-section {
    color: #63a35c
}

.hljs-tag {
    color: var(--TextColor1);
}

.hljs-attr,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id,
.hljs-selector-pseudo,
.hljs-title {
    color: #795da3
}

.hljs-addition {
    color: #55a532;
    background-color: #eaffea
}

.hljs-deletion {
    color: #bd2c00;
    background-color: #ffecec
}

.hljs-link {
    text-decoration: underline
}


/***********************************************************/
/********** 自定義matlab語法高亮 **********/
.matlab-code {
    white-space: pre;
}

.matlab-code .matlab-keyword,
code .matlab-keyword {
    color: #0000fe;
}

.matlab-code .matlab-string,
code .matlab-string {
    color: #a020ef;
}

.matlab-code .matlab-number,
code .matlab-number {
    color: var(--TextColor1);
}

.matlab-code .matlab-bracket,
code .matlab-bracket {
    color: var(--TextColor1);
}

.matlab-code .matlab-comment,
code .matlab-comment {
    color: #228b22;
}

.matlab-code .matlab-comment span,
code .matlab-comment span {
    color: #228b22;
    font-weight: normal;
}

/* 插入媒體 */
#cnblogs_post_body .video {
    height: 0;
    margin: 10px auto;
    padding-bottom: 56.25%;
    /* 16:9 */
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cnblogs_post_body .video iframe,
#cnblogs_post_body .video video {
    position: absolute;
    /*left: 0;*/
    top: 0;
    /*right:0;*/
    width: 98%;
    height: 100%;
    z-index: 0;
}

#cnblogs_post_body .music {
    height: 140px;
    /*padding-bottom: 14.39%;*/
    /* 16:9 */
    position: relative;
    width: 100%;
}

#cnblogs_post_body .music iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* 解析視訊 */
.__zy_bounce __zy_animated __zy_infinite {
    display: none;
}

.div-box {
    display: flex;
    height: 40px;
    line-height: 40px;
    background: #fff;
    text-align: center;
    width: 100%;
    margin-top: 20px;
}

.input-url {
    flex: 1;
    padding: 10px;
    outline: none;
    margin-left: 5px;
    background: #fff;
    border: 1px solid #b6b6b6;
    border-radius: 4px;
}

.jiexi {
    /*width: 100px;*/
    background: #3385ff;
    border: 1px solid #3385ff;
    padding: 10px 20px;
    border-radius: 4px;
    margin: 0 4px 0 10px;
    height: 40px;
    outline: none;
    color: #fff;
}

.jiexi:hover {
    background-color: #2a6bcc;
}

/* 懸浮式下拉選單 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    z-index: 9999;
    margin-left: 10px;
    position: absolute;
    background-color: #f9f9f9;
    width: 100px;
    border-radius: 4px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content p {
    color: black;
    display: block;
    cursor: pointer;
}

.dropdown-content p:hover {
    background-color: #f1f1f1
}

/********** 首頁輪播 **********/
#slideContainer {
    display: block;
}

#slideContainer img {
    max-width: 100% !important;
}

.cl:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.cl {
    zoom: 1;
}

.frame {
    margin-bottom: 10px;
    border: 1px solid #e1e1e1;
    background: #FFF;
}

.title {
    padding: 0 10px;
    height: 32px;
    font-size: 14px;
    font-weight: 700;
    line-height: 32px;
    overflow: hidden;
}

.block {
    margin: 10px 10px 0;
}

.temp {
    margin: 1px;
}

.slideshow {
    clear: both;
}

.slideshow li {
    position: relative;
    overflow: hidden;
}

.slideshow span.title {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-bottom: 0;
    width: 100%;
    height: auto;
    line-height: 32px;
    font-size: 16px;
    text-indent: 10px;
}

.slideshow span.title,
.slidebar li {
    background: rgba(0, 0, 0, 0.3);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#30000000, endColorstr=#30000000);
    color: #FFF;
    overflow: hidden;
}

.slidebar li {
    float: left;
    margin-right: 1px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 10px;
    cursor: pointer;
}

.slidebar li.on {
    background: rgba(255, 255, 255, 0.5);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#50FFFFFF, endColorstr=#50FFFFFF);
    color: #000;
    font-weight: 700;
}

.frame {
    background: none;
    border: 0px solid #fff;
    margin-bottom: 0px;
}

.temp {
    margin: 0;
}

.slidebar {
    position: absolute;
    top: 5px;
    left: 4px;
}

.slideshow span.title,
.slidebar li {
    background: rgba(0, 0, 0, 0.3);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#90000000, endColorstr=#90000000);
    color: #FFF;
    overflow: hidden;
}

.slidebar li.on {
    background: rgba(255, 255, 255, 0.5);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#90000000, endColorstr=#90000000);
    color: #b62525;
    font-weight: 700;
}

.slideshow SPAN.title {
    text-indent: 0px;
}

.block {
    margin: 0;
    position: relative;
}

#frameHlicAe {
    margin: 0px !important;
    border: 0px !important;
}

.comiis_wrap960,
.comiis_wrapad {
    margin: 0 auto;
    background-color: var(--BlockColor);
    border-radius: 2px;
}

.comiis_wrapad {
    padding: 20px;
    margin-bottom: 20px;
}

.comiis_wrapad {
    overflow: hidden;
}

.comiis_wrapad img {
    float: left;
    margin-top: 0px;
    width: 100%;
}

#slidesImgs li {
    width: 100%;
    height: auto;
    display: none;
}

/*------------------------------*/
.asciidoc .hljs-emphasis,
.markdown .hljs-emphasis {
    font-style: italic;
}

.nginx .hljs-built_in {
    font-weight: normal;
}

.coffeescript .javascript,
.javascript .xml,
.lasso .markup,
.tex .hljs-formula,
.xml .javascript,
.xml .vbscript,
.xml .css,
.xml .hljs-cdata {
    opacity: 0.5;
}

.hljs {
    display: block;
    padding: 0.5em;
    background: aliceblue !important;
}

code:not(.hljs) {
    word-wrap: break-word;
    color: brown;
/*    background-color: #f9f2f4 !important;*/
    padding: 0 10px;

}


body,
.hljs,
code,
.wiz_toc_layer,
#sideBarContentsml,
.CodeMirror,
#uprightsideBar,
#sideCatalog-catalog,
.cnblogs-markdown .hljs,
.cnblogs-post-body .hljs,
ol.linenums code,
code:not(.hljs),#sideBarml ,.wiz-editor-body {
    font-family: Consolas, Verdana, Arial, Helvetica, sans-serif !important;
        overflow: auto;
}

prettyprint linenums prettyprinted  linenums  hljs{
    border: 0!important;
}

img.but {
    display: none;
}

/*----------------------------------------------------------*/

@media screen and (min-width:0px) {
   
        #topics {
        background-color: var(--BlockColor);
        padding: 20px;
        border-radius: 4px;
        margin-bottom: 20px;
        border: 1px solid var(--DividColor);
    }

    #topics .post {
        display: grid;
        grid-template-columns: 100%;
    }

    .post .postBody {
        order: 1;
              /*  z-index:0;*/
    }

    .post .postTitle {
        font-size: var(--text2);
        word-break: break-all;
        line-height: 1.8;
        margin: 0;
        padding: 10px 0;
        text-align: center;
    }

    .post .postDesc {
        font-size: 0;
        line-height: 2;
        text-align: center;
    /*    padding-bottom: 20px;
        border-bottom: 1px solid var(--DividColor);
        margin-bottom: 10px;
*/
    }
       #EntryTag{
text-align: center;
border-bottom: 1px solid var(--DividColor);
    padding-bottom: 20px;
}
    #topics #post-date,
    #topics .postDesc a,
    #topics #post_view_count,
    #topics #post_comment_count {
        color: var(--TextColor3);
        font-size: 16px;
        margin-right: 10px;
    }

    #topics .postDesc a:hover {
        color: var(--ThemeColor);
    }

    #topics #post-date:before {
        content: "\f017";
        margin-right: 4px;
        font-family: FontAwesome;
    }

    #topics .postDesc a:nth-child(2):before {
        content: "\f2be";
        margin-right: 4px;
        font-family: FontAwesome;
    }

    #topics .postDesc #post_view_count:before {
        content: "\f06e";
        margin-right: 4px;
        font-family: FontAwesome;
    }

    #topics #post_comment_count:before {
        content: "\f27b";
        margin-right: 4px;
        font-family: FontAwesome;
    }

    #topics .postDesc a:nth-last-child(3):before {
        content: '\f121';
        font-family: FontAwesome;
        margin-right: 4px;
    }

    #topics .postDesc a:nth-last-child(2):before {
        content: '\f040';
        font-family: FontAwesome;
        margin-right: 4px;
    }

    #topics .postDesc a:nth-last-child(1):before {
        content: '\f02e';
        font-family: FontAwesome;
        margin-right: 4px;
    }

.upToNav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    background-color: var(--BlockColor);
    border: 1px solid var(--DividColor);
    border-radius: 4px;
    padding: 10px;
    color: var(--TextColor2);
}
.upToNav:before {
    content: '\f077';
    font-family: FontAwesome;
    margin-left: 0px;
}
div#sidebar_topdiggedposts {
    display: none;
}
}
/*上一篇*/
#post_next_prev a,#under_post_news a,#comment_nav a,#commentbox_opt a,.feedbackItem a,.blog_comment_body a{
    color: var(--ThemeColor);
}
.clipboard-button {
    color: cadetblue;
}



部落格側邊欄公告(支援HTML程式碼) (支援 JS 程式碼)

<script type="text/javascript">

function removeElementsByClass(className){
    var elements = document.getElementsByClassName(className);
    while(elements.length > 0){
        elements[0].parentNode.removeChild(elements[0]);
    }
}
//刪除預設的目錄欄
removeElementsByClass("toc");
function arrownTop() {
    var w = document.body.clientWidth;
    str = "<a href='#navigator' class='upToNav'></a>";
    if (w > 361) {
        $('#footer').prepend(str);
    } else if ($('#sidebar_scroller') == null) {
        $('#page_end_html').prepend(str);
    }
}
arrownTop();
   
   // setFavio(myprofile); // 網頁tab影象
    loadThemeColor(); //匯入主題顏色
    setHeader(); //導航欄

   changePublishinfo(); //博文釋出資訊位置---文章標籤
    setPostSideBar(); //側邊欄目錄
   // setSignautre(myprofile); //博文簽名
    loadMobileContent(); //移動端目錄功能欄
    commentIcon(); //評論區頭像
    blankTarget(); //文章連結新視窗開啟
    copyCode(); //程式碼塊複製
    setMobileHeader(); //移動端導航欄
    tableScorll(); //表格滾動
  //  mymd(); //自定義語法
  //  runCode(); //文章內部執行程式碼
    highlightMATLABCode(); //matlab自定義語法高亮



</script>

頁首 HTML 程式碼

沒有配置

頁尾 HTML 程式碼

若是將檔案儲存到自己的部落格園中了,直接複製自己的檔案路徑,沒有的話用我的(右鍵檔案--複製連結地址)

<!--念兩句詩-->
<!--程式碼複製-->
<script src="https://files.cnblogs.com/files/ziyue7575/clipboard.min.js"></script>

<!--主題-->
<script src="https://files.cnblogs.com/files/ziyue7575/gshang.2019.10.27.1.js"></script>

儲存之後樣式設定完了。大神的部落格中還有其他的功能,我沒用到刪了,大家可以去看看