zoukankan      html  css  js  c++  java
  • 菜鸡博客开……开……开源了!

    因为很多人找我要过博皮源码,所以本宝宝经过深思熟虑,最终决定把自己的源码分享给大家!

    不过!

    我肯定不会直接给CSS+页首页脚html的,毕竟弄一个一毛一样的博客就真心没意思了。

    所以我把自己的代码分了一下类,大家可以根据自己不同的需求copy代码^_^

    补充一下,关于是否把博客开源这件事情我其实做过考虑。当时有所顾虑的问题主要是版权,因为我所用的代码99%都不是我自己写的,这样冒然的发出来可能会对原作者不尊重。但是后来发生了很多次令人恼火的事情,因为博客园比较开放,很多“F12玩家”可以不费吹灰之力窃取到别人的劳动成果,这样会对很多人不公平。所以我再三考虑之后,确定把代码开源。

    如果您在以下代码中发现了您的不允许公开的原创代码,请私信博主,我一定会及时删除!

    CSS系列

    把下面的四块内容拼起来就是我完整的CSS了,当然里面可能有一些“图片地址需要大家自己填写”

    body {
    cursor: url(图片地址), auto;
    }
    a:hover { cursor:url("图片地址"),auto;}#header:before
    鼠标样式
    .diggit {
        float: left;
         200px;
        height: 99px;
        background: url(图片地址) no-repeat;
        text-align: center;
        cursor: pointer;
        margin-top: 2px;
        padding-top: 5px;
    }
    .buryit {
        float: right;
        margin-left: 20px;
         46px;
        height: 52px;
        background: url(图片地址) no-repeat;
        text-align: center;
        cursor: pointer;
        margin-top: 2px;
        padding-top: 5px;
        display:none;
    }
    自定义推荐反对
    @media (max- 601px) {
        #home {
            min- 0;
        }
        #home #header {
             100%;
        
        }
        #home #header #blogTitle {
            background-position: left top;
        }
        #home #header #navigator {
            font-size: 15px;
            /* border-bottom: 1px solid #ededed; */
            /* border-top: 1px solid #ededed; */
            height: 35px;
            clear: both;
            /* margin-top: 25px; */
            /* margin: 0px 20px; */
             100%;
            /* float: left; */
            background: #222;
            margin: 0;
        }
        #home #header #navigator > ul#navList {
            height: 35px;
        }
        #home #header #navigator > ul#navList>li {
            height: 35px;
            margin: 0;
        }
        #home #header #navigator > ul#navList>li>a {
            height: 35px;
            line-height: 35px;
        }
        #home #header #navigator .blogStats {
            height: 35px;
            line-height: 35px;
        }
        #home #main {
            position: relative;
            min- 0;
            margin-top: 250px;
            bottom: 60px;
        }
        #home #main #mainContent {
            position: relative;
            float: none;
            margin: 0;
        }
        #home #main #mainContent .forFlow {
            margin: 0;
        }
        #home #main #mainContent div.commentform input.author {
             100px;
        }
        #home #main #mainContent div.commentform textarea.comment_textarea {
             100%;
        }
        #home #main #sideBar {
            display: none;
        }
        #home #main .postBody #cnblogs_post_body img {
             100%;
        }
    }
    
    @media (min- 402px) and (max- 601px) {
        #navigator > ul#navList {
            animation:
                arrowup 10s linear 0 infinite alternate;
            -webkit-animation:
                arrowup 10s linear 0 infinite alternate;
            -moz-animation:
                arrowup 10s linear 0 infinite alternate;
        }
        @-webkit-keyframes arrowup {
            0% {
                transform: translate3d(0, 0, 0);
                -webkit-transform: translate3d(0, 0, 0);
                -moz-transform: translate3d(0, 0, 0);
            }
            25% {
                transform: translate3d(0, 0, 0);
                -webkit-transform: translate3d(0, 0, 0);
                -moz-transform: translate3d(0, 0, 0);
            }
            50% {
                transform: translate3d(0, -42px, 0);
                -webkit-transform: translate3d(0, -42px, 0);
                -moz-transform: translate3d(0, -42px, 0);
            }
            100% {
                transform: translate3d(0, -42px, 0);
                -webkit-transform: translate3d(0, -42px, 0);
                -moz-transform: translate3d(0, -42px, 0);
            }
        }
    }
    
    @media (min- 302px) and (max- 401px) {
        #navigator > ul#navList {
        animation:
            arrowup 15s linear 0 infinite alternate;
        -webkit-animation:
            arrowup 15s linear 0 infinite alternate;
        -moz-animation:
            arrowup 15s linear 0 infinite alternate;
        }
        @-webkit-keyframes arrowup {
            0% {
                transform: translate3d(0, 0, 0);
                -webkit-transform: translate3d(0, 0, 0);
                -moz-transform: translate3d(0, 0, 0);
            }
            15% {
                transform: translate3d(0, 0, 0);
                -webkit-transform: translate3d(0, 0, 0);
                -moz-transform: translate3d(0, 0, 0);
            }
            30% {
                transform: translate3d(0, -42px, 0);
                -webkit-transform: translate3d(0, -42px, 0);
                -moz-transform: translate3d(0, -42px, 0);
            }
            45% {
                transform: translate3d(0, -42px, 0);
                -webkit-transform: translate3d(0, -42px, 0);
                -moz-transform: translate3d(0, -42px, 0);
            }
            60% {
                transform: translate3d(0, -84px, 0);
                -webkit-transform: translate3d(0, -84px, 0);
                -moz-transform: translate3d(0, -84px, 0);
            }
            100% {
                transform: translate3d(0, -84px, 0);
                -webkit-transform: translate3d(0, -84px, 0);
                -moz-transform: translate3d(0, -84px, 0);
            }
        }
    }
    @media (min- 202px) and (max- 301px) {
        #navigator > ul#navList {
            animation:
                arrowup 20s linear 0 infinite alternate;
            -webkit-animation:
                arrowup 20s linear 0 infinite alternate;
            -moz-animation:
                arrowup 20s linear 0 infinite alternate;
        }
        @-webkit-keyframes arrowup {
            0% {
                transform: translate3d(0, 0, 0);
                -webkit-transform: translate3d(0, 0, 0);
                -moz-transform: translate3d(0, 0, 0);
            }
            12% {
                transform: translate3d(0, 0, 0);
                -webkit-transform: translate3d(0, 0, 0);
                -moz-transform: translate3d(0, 0, 0);
            }
            24% {
                transform: translate3d(0, -42px, 0);
                -webkit-transform: translate3d(0, -42px, 0);
                -moz-transform: translate3d(0, -42px, 0);
            }
            36% {
                transform: translate3d(0, -42px, 0);
                -webkit-transform: translate3d(0, -42px, 0);
                -moz-transform: translate3d(0, -42px, 0);
            }
            48% {
                transform: translate3d(0, -84px, 0);
                -webkit-transform: translate3d(0, -84px, 0);
                -moz-transform: translate3d(0, -84px, 0);
            }
            60% {
                transform: translate3d(0, -84px, 0);
                -webkit-transform: translate3d(0, -84px, 0);
                -moz-transform: translate3d(0, -84px, 0);
            }
            72% {
                transform: translate3d(0, -126px, 0);
                -webkit-transform: translate3d(0, -126px, 0);
                -moz-transform: translate3d(0, -126px, 0);
            }
            100% {
                transform: translate3d(0, -126px, 0);
                -webkit-transform: translate3d(0, -126px, 0);
                -moz-transform: translate3d(0, -126px, 0);
            }
        }
    }
    
    @media (max- 201px) {
        #navigator > ul#navList {
            animation:
                arrowup 20s linear 0 infinite alternate;
            -webkit-animation:
                arrowup 20s linear 0 infinite alternate;
            -moz-animation:
                arrowup 20s linear 0 infinite alternate;
        }
        @-webkit-keyframes arrowup {
            0% {
                transform: translate3d(0, 0, 0);
                -webkit-transform: translate3d(0, 0, 0);
                -moz-transform: translate3d(0, 0, 0);
            }
            6% {
                transform: translate3d(0, 0, 0);
                -webkit-transform: translate3d(0, 0, 0);
                -moz-transform: translate3d(0, 0, 0);
            }
            12% {
                transform: translate3d(0, 0, 0);
                -webkit-transform: translate3d(0, 0, 0);
                -moz-transform: translate3d(0, 0, 0);
            }
            18% {
                transform: translate3d(0, -42px, 0);
                -webkit-transform: translate3d(0, -42px, 0);
                -moz-transform: translate3d(0, -42px, 0);
            }
            24% {
                transform: translate3d(0, -42px, 0);
                -webkit-transform: translate3d(0, -42px, 0);
                -moz-transform: translate3d(0, -42px, 0);
            }
            30% {
                transform: translate3d(0, -84px, 0);
                -webkit-transform: translate3d(0, -84px, 0);
                -moz-transform: translate3d(0, -84px, 0);
            }
            36% {
                transform: translate3d(0, -84px, 0);
                -webkit-transform: translate3d(0, -84px, 0);
                -moz-transform: translate3d(0, -84px, 0);
            }
            42% {
                transform: translate3d(0, -126px, 0);
                -webkit-transform: translate3d(0, -126px, 0);
                -moz-transform: translate3d(0, -126px, 0);
            }
            48% {
                transform: translate3d(0, -126px, 0);
                -webkit-transform: translate3d(0, -126px, 0);
                -moz-transform: translate3d(0, -126px, 0);
            }
            54% {
                transform: translate3d(0, -168px, 0);
                -webkit-transform: translate3d(0, -168px, 0);
                -moz-transform: translate3d(0, -168px, 0);
            }
            60% {
                transform: translate3d(0, -168px, 0);
                -webkit-transform: translate3d(0, -168px, 0);
                -moz-transform: translate3d(0, -168px, 0);
            }
            66% {
                transform: translate3d(0, -210px, 0);
                -webkit-transform: translate3d(0, -210px, 0);
                -moz-transform: translate3d(0, -210px, 0);
            }
            72% {
                transform: translate3d(0, -210px, 0);
                -webkit-transform: translate3d(0, -210px, 0);
                -moz-transform: translate3d(0, -210px, 0);
            }
            78% {
                transform: translate3d(0, -252px, 0);
                -webkit-transform: translate3d(0, -252px, 0);
                -moz-transform: translate3d(0, -252px, 0);
            }
            84% {
                transform: translate3d(0, -252px, 0);
                -webkit-transform: translate3d(0, -252px, 0);
                -moz-transform: translate3d(0, -252px, 0);
            }
            90% {
                transform: translate3d(0, -296px, 0);
                -webkit-transform: translate3d(0, -296px, 0);
                -moz-transform: translate3d(0, -296px, 0);
            }
            100% {
                transform: translate3d(0, -296px, 0);
                -webkit-transform: translate3d(0, -296px, 0);
                -moz-transform: translate3d(0, -296px, 0);
            }
        }
    }
    手机端
    html {
        -ms-overflow-style: -ms-autohiding-scrollbar;
        overflow-y: scroll;
        -webkit-text-size-adjust: 100%
    }
    
    
    
    #header #lnkBlogLogo{
        background-image: url(图片地址);
        border-radius: 100%;
         180px;
        height: 180px;
        border: 5px solid #fff;
        background-size: contain;
        transition: transform 0.1s ease;
        position: absolute;
        top: 35px;
        left: calc(50% - 90px);
    }
    #navigator {
        display: none;
        height: 50px;
        background: #fff;
        top:0;
        position: relative;
    }
    
    @media screen and (max- 1120px){
        #main {
            margin: 10px!important;
        }
    }
    
    
    
    
    
    
    
    
    
    
    
    .cnblogs_code {
        background-color: #f5f5f5;
        font-family: Courier New!important;
        font-size: 12px!important;
        border: 2px dotted #03A9F4;
        padding: 5px;
        overflow: auto;
        margin: 5px 0;
        color: #000;
        transition: 0.5s ease;
        border-radius: 20px;
    }
    
    
    
    
    /*头像旋转*/
    .feedbackCon img:hover {
    -webkit-transform: rotateZ(360deg);
    -moz-transform: rotateZ(360deg);
    -ms-transform: rotateZ(360deg);
    -o-transform: rotateZ(360deg);
    transform: rotateZ(360deg);
    }
     
    .feedbackCon img {
    border-radius: 40px;
    -webkit-transition: all 0.6s ease-out;
    -moz-transition: all 0.5s ease-out;
    -ms-transition: all 0.5s ease-out;
    -o-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
    }
    
    
    
    @keyframes loading-l {
        0% {
            transform: translateY(40px)
        }
        100% {
            transform: translateY(0px)
        }
    }
    
    #main #mainContent {
        line-height: 1.6;
        float: left;
         calc(100% - 280px);
        animation: 0.5s both loading-l;
    }
    
    .content {
        position: relative;
        background: #e4f0f8;
    }
    
    
    
    .content {
        position: relative;
        background: #e4f0f8;
    }
    
    
    
    /* 分类 标签 */
    #BlogPostCategory a::after , #MyTag1_dtTagList a::after , #EntryTag a::after , .catListTag a::after {
        background-color: #fff;
        border-radius: 50%;
        content: " ";
        height: 4px;
        position: absolute;
        top: 13px;
        left: -3px;
         4px;
    }
    #BlogPostCategory a:hover::before,#MyTag1_dtTagList a:hover::before, #EntryTag a:hover::before, .catListTag a:hover::before {
        border-right-color: #ff5a4e;
    }
    #BlogPostCategory  a::before, #MyTag1_dtTagList a::before, #EntryTag a::before, .catListTag a::before {
        border-top: 15px solid transparent;
        border-right: 10px solid #2196f3;
        border-bottom: 14px solid transparent;
        content: "";
        height: 0px;
        position: absolute;
        top: 0px;
        left: -10px;
         0px;
        transition:all 0.2s;
    }
    
    #BlogPostCategory a:hover, #MyTag1_dtTagList a:hover, #EntryTag a:hover, .catListTag a:hover {
        background-color: #ff5a4e;
    }
    #BlogPostCategory a, #MyTag1_dtTagList a, #EntryTag a, .catListTag a {
        background-color: #2196f3;
        border-radius: 0 3px 3px 0;
        color: #fff;
        display: inline-block;
        font-size: 14px;
        line-height: 1.2727;
        margin: 2px 4px 2px 10px;
        padding: 6px 8px;
        position: relative;
        transition:all 0.2s;
    }
    #BlogPostCategory {
        margin-right: 5px;
        padding: 0px 30px 0px;
        background: url(http://images.cnblogs.com/cnblogs_com/pandaman/653138/o_o_biaoqianfenlei.png) no-repeat left center;
        color: white;
        font-size: 0px;
    }
    #EntryTag {
        margin-right: 5px;
        padding: 0px 30px 0px;
        background: url(http://images.cnblogs.com/cnblogs_com/pandaman/653138/o_o_biaoqianfenlei.png) no-repeat left center;
        color: white;
        font-size: 0px;
    }
    
    
    
    
    
    
    /*
     代码高亮开始,使用了一个叫Monokai Sublime的黑色主题皮肤,直接拿过来还不行,有一些样式冲突,还要自己稍微改一些地方
    Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/
    */
    pre {
    /*控制代码不换行*/
        white-space: pre;
        word-wrap: normal;
    }
    .cnblogs-markdown .hljs {
        display: block;
        overflow-x: auto;
        padding: 0.5em;
        background: #23241f !important;
        color: #FFF;
        white-space: pre;
        word-break: normal;
    }
    .cnblogs-markdown .hljs {
        font-family: "Courier New",sans-serif!important;
        font-size: 15px!important;
        line-height: 1.5!important;
        padding: 5px!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;
    }
    
    /*黑色主题皮肤结束*/
    
    
    * {
        margin: 0;
        padding: 0;
        background-repeat: no-repeat;
        font-size: inherit;
        line-height: inherit;
    }
    
    audio:not([controls]) {
        display: none
    }
    
    b, strong {
        font-weight: bolder
    }
    
    button {
        -webkit-appearance: button;
        overflow: visible
    }
    
    button::-moz-focus-inner, input::-moz-focus-inner {
        border: 0;
        padding: 0
    }
    
    button:-moz-focusring, input:-moz-focusring {
        outline: 1px dotted ButtonText
    }
    
    button, select {
        text-transform: none
    }
    
    details {
        display: block
    }
    
    hr {
        overflow: visible
    }
    
    html {
        -ms-overflow-style: -ms-autohiding-scrollbar;
        overflow-y: scroll;
        -webkit-text-size-adjust: 100%
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-family:  Calibri, "PingFang SC", "Hiragino Sans GB","Microsoft YaHei",Arial, sans-serif;
    }
    
    .c_ad_block {
        display: none;
    }
    
    input {
        -webkit-border-radius: 0
    }
    
    input[type="button"], input[type="reset"], input[type="submit"] {
        -webkit-appearance: button
    }
    
    input[type="number"] {
         auto
    }
    
    input[type="search"] {
        -webkit-appearance: textfield
    }
    
    input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none
    }
    
    main {
        display: block
    }
    
    pre {
        overflow: auto
    }
    
    progress {
        display: inline-block
    }
    
    summary {
        display: block
    }
    
    svg:not(:root) {
        overflow: hidden
    }
    
    template {
        display: none
    }
    
    textarea {
        overflow: auto
    }
    
    [hidden] {
        display: none
    }
    
    *, ::before, ::after {
        box-sizing: inherit
    }
    
    ::before, ::after {
        text-decoration: inherit;
        vertical-align: inherit
    }
    
    button, input, select, textarea {
        font-family: inherit;
        font-style: inherit;
        font-weight: inherit
    }
    
    *, ::before, ::after {
        border-style: solid;
        border- 0;
    }
    
    a, area, button, input, label, select, textarea, [tabindex] {
        touch-action: manipulation;
    }
    
    .sourceCode>* {
             font-family: Consolas,Monaco, Ubuntu Mono,"Source Code Pro",Courier New!important;
    }
    
    svg {
        fill: currentColor
    }
    
    [aria-busy="true"] {
        cursor: progress
    }
    
    [aria-controls] {
        cursor: pointer
    }
    
    [aria-disabled] {
        cursor: default
    }
    
    [hidden][aria-hidden="false"] {
        clip: rect(0 0 0 0);
        display: inherit;
        position: absolute
    }
    
    [hidden][aria-hidden="false"]:focus {
        clip: auto
    }
    
    * {
        background-repeat: no-repeat;
    }
    
    :root {
        background-color: #fff;
        box-sizing: border-box;
        color: #000;
        cursor: default;
    }
    
    a {
        text-decoration:none;
        color: #2196F3;
    }
    
    audio, canvas, iframe, img, svg, video {
        vertical-align: middle;
        border: border: 2px dashed rgba(33, 150, 243, 0.33);
    }
    
    button, input, select, textarea {
        background-color: transparent;
        color: inherit
    }
    
    button, [type="button"], [type="date"], [type="datetime"], [type="datetime-local"], [type="email"], [type="month"], [type="number"], [type="password"], [type="reset"], [type="search"], [type="submit"], [type="tel"], [type="text"], [type="time"], [type="url"], [type="week"], select, textarea {
        min-height: 1.5em;
    }
    
    code, kbd, pre, samp {
        font-family: Consolas,Monaco, monospace,Ubuntu Mono,"Source Code Pro",Courier New!important;
    
    }
    
    nav ol, nav ul {
        list-style: none
    }
    
    small {
        font-size: 75%
    }
    
    table {
        border-collapse: collapse;
        border-spacing: 0;
    }
    
    textarea {
        resize: vertical;
    }
    
    div.commentform textarea {
         450px;
        height: 150px;
        font-size: 13px;
        border: 1px solid #ccc;
    }
    
    ::-moz-selection {
        background-color: #b3d4fc;
        text-shadow: none
    }
    
    ::selection {
        background-color: #b3d4fc;
        text-shadow: none
    }
    
    body {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 0;
        background-color: #eeeeee;
        text-overflow: ellipsis;
        white-space: normal;
        font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB","Microsoft Yahei","Source Han Sans", "PingFang SC",Arial,"Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    }
    
    
    #header {
        background-color: #2D3642;
        position: relative;
         100%;
        height: 400px;
        background-image:url('http://api.1314yun.cn/random.php');
        background-attachment:fixed;
        background-size: cover;
        background-repeat: repeat;
        background-position: center;
        overflow: hidden;
    }
    
    
    #header #blogTitle {
        color: #fff;
        text-align: center;
        margin-top: 35px;
    }
    
    #header #blogTitle .headermaintitle {
        font-size: 3.75em;
        color: #fff;
        text-shadow: 1px 1px 4px rgba(34, 34, 34, 0.6);
    }
    
    #header #blogTitle h2 {
        font-size: 1.5rem;
        text-shadow: 1px 1px 4px rgba(34, 34, 34, 0.6);
    }
    
    #header:before {
        background-image: url(http://q.qlogo.cn/headimg_dl?bs=qq&dst_uin=757394026&src_uin=www.12580sky.com&fid=blog&spec=240);
        content: " ";
        position: relative;
        border-radius: 100px;
        display: block;
         180px;
        height: 180px;
        border: 5px solid #fff;
        background-size: contain;
        margin-left: 50%;
        margin-bottom: 18px;
        transform: translate3d(-50%, 20%, 0);
    }
    
    #navigator {
        display: none;
    }
    
    #main {
        
        display: flex;
        margin: 4%;
        justify-content: center;
    }
    
    #main #mainContent {
        margin-right: 2%;
         58%;
        color: #333;
        font-size: 16px;
        line-height: 1.6;
    }
    
    #main #mainContent .day {
        position: relative;
        margin-bottom: 50px;
        padding: 40px 20px;
        box-shadow: 0 0 0 0, 0 6px 12px rgba(34, 34, 34, 0.1);
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        background-color: #fff;
    }
    
    #main #mainContent .day .postDesc {
        padding: 0 110px 0 10px;
        border-top: 1px solid #dee1e0;
        color: #bfbfbf;
        line-height: 3.125rem;
    }
    
    #main #mainContent .dayTitle {
        position: absolute;
        top: 6px;
        left: -25px;
        min- 155px;
        padding: 6px 10px;
        background: #EB3349;
        background: -webkit-linear-gradient(to right, #F45C43, #EB3349);
        background: linear-gradient(to left, #F45C43, #EB3349);
        box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 3px 0px;
        text-align: center;
    }
    
    #main #mainContent .dayTitle:before {
        position: absolute;
        top: 100%;
        left: 0;
        border-color: #af2734  transparent;
        border-style: solid;
        border- 20px 0 0 25px;
        content: " ";
    }
    
    #main #mainContent .dayTitle a {
        color: #fff;
        text-align: center;
        font-size: 1.125rem;
        font-family: PingFang SC,Microsoft YaHei;
    }
    
    #main #mainContent .postTitle {
        overflow: hidden;
        margin: 10px auto;
        padding: 0 2em 0 20px;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 26px;
    }
    
    #main #mainContent .postTitle a{
        color:#333;
        transition: all 0.2s;
    }
    
    #main #mainContent .postCon {
        border-top: 1px solid #dee1e0;
        background-color: #f4f4f4;
    }
    
    #main #mainContent .c_b_p_desc {
        position: relative;
        overflow: visible!important;
        padding: 20px;
        color: #4d4d4d;
        font-size: 1pc;
    }
    
    #main #mainContent .c_b_p_desc a.c_b_p_desc_readmore {
        position: absolute;
        top: 108%;
        right: 0;
         75pt;
        height: 40px;
        border-radius: 3px;
        background-color: #00ace4;
        color: #fff;
        text-align: center;
        line-height: 2.5rem;
        transition: .3s ease background-color;
    }
    
    #main #mainContent .c_b_p_desc a:hover {
        background-color: #007ea7;
        color: #eee;
    }
    
    #sideBar {
         250px;
        min- 0;
    }
    
    #sideBar .catListTitle {
        margin-top: 0;
        padding: 10px 30px;
        background: #36b3ef;
        text-align: center;
        font-size: 1.25rem;
        color: #fff;
     
    }
    
    #sideBar .newsItem {
        overflow: hidden;
        margin: 0 0 20px;
        box-shadow: 0 0 0 0, 0 6px 12px rgba(34, 34, 34, 0.1);
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        background-color: #fff;
    }
    
    #sideBar .newsItem #profile_block {
        padding: 20px;
        padding-top: 20px;
        color: #666;
        word-wrap: break-word;
        font-size: 1.125rem;
    }
    
    #sideBar .newsItem #profile_block a {
        color: #666;
        font-size: 1.125rem;
    }
    
    #sideBarMain #blog-calendar, #sideBarMain .sidebar-block {
        overflow: hidden;
        margin-bottom: 20px;
        box-shadow: 0 0 0 0, 0 6px 12px rgba(34, 34, 34, 0.1);
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        background-color: #fff;
    }
    #sideBarMain .CalTitle{
        border-bottom: #36b3ef 1px solid;
    }
    
    #sideBarMain .CalTitle td {
        height: 40px;
        background-color: #36b3ef;
        color: #fff;
        font-size: 22px;
    }
    
    #sideBarMain .CalTitle td.CalNextPrev {
        padding-left: 15px;
        padding-right: 15px
    }
    
    #sideBarMain .CalTitle td.CalNextPrev a {
        color: #fff;
    }
    
    #sideBarMain .CalDayHeader {
        height: 32px;
        color: #fff;
        background-color: rgb(54, 179, 239);
        font-size: 18px;
    }
    
    #sideBarMain td {
        height: 35px;
        background-color: #fff;
    }
    
    #sideBarMain #widget_my_zzk {
        display: flex;
        padding: 9pt;
    }
    
    #sideBarMain #widget_my_zzk input#q {
         100%;
        height: 40px;
        border-radius: 3px 0 0 3px;
        background-color: #eee;
    }
    
    #sideBarMain input#btnZzk {
        padding: 10px;
        height: 40px;
        border: 0 none;
        border-radius: 0 3px 3px 0;
        background-color: #00ace4;
        color: #fff;
        cursor: pointer;
        transition: .3s ease background-color;
    }
    
    #sideBarMain input#btnZzk:hover {
        background-color: #1f628e;
        color: #fff;
    }
    
    #sideBarMain #blogCalendar>tbody>tr:nth-child(n+3) td.CalOtherMonthDay {
        color: rgba(0, 0, 0, .2);
    }
    .CalTodayDay u{
        color:#fff;
    }
    #sideBarMain #blogCalendar>tbody>tr:nth-child(n+3) td.CalTodayDay {
        border-radius: 20px;
        background-color: #03A9F4;
        color: #fff;
    }
    
    #sideBarMain #blogCalendar>tbody>tr:nth-child(n+3) td>a {
        color: #00ace4;
        text-decoration: none;
    }
    
    #blog-sidecolumn ul li {
        overflow: hidden;
         100%;
        border-bottom: 1px dashed #e1e1e1;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.125rem;
        line-height: 2rem;
    }
    
    #blog-sidecolumn ul li a {
        color: #666;
    }
    
    #blog-sidecolumn .recent_comment_author {
        position: relative;
        margin-bottom: 1pc;
        color: rgba(0, 0, 0, .6);
        text-align: right;
        text-shadow: 2px 2px 1px rgba(0, 0, 0, .3);
        font-weight: 400;
    }
    
    #blog-sidecolumn .recent_comment_body {
        position: relative;
        overflow: visible;
        padding: 8px;
        border-top: 1px solid #dee1e0;
        background-color: #f4f4f4;
        color: #4d4d4d;
        white-space: normal;
        font-size: 0.8rem;
    }
    
    #blog-sidecolumn li>a {
        transition: .2s ease-out color;
    }
    
    #blog-sidecolumn #RecentCommentsBlock ul li {
        list-style: none;
    }
    
    #cnblogs_post_body th, #cnblogs_post_body td, .cnblogs-post-body th, .cnblogs-post-body td{
        padding: 8px!important;
    }
    .topicListFooter {
        margin: 0!important;
    }
    
    .topicListFooter #nav_next_page a {
        display: inline-block;
        padding: 15px 20px;
         75pt;
        border-radius: 5px;
        background-color: #b4b4b4;
        color: #fff;
        text-align: center;
        font-size: 1.25rem;
        transition: .3s ease background-color;
    }
    
    .topicListFooter #nav_next_page a:hover {
        background-color: #fb6362;
    }
    
    #footer {
        height: 200px;
        background-color: #404a58;
        color: #fff;
        text-align: center;
        font-size: 1.3em;
        line-height: 12.5rem;
        display:none
    }
    
    .scrollup {
        position: fixed;
        bottom: 120px;
        right: 50px;
        z-index: 10;
        display: block;
         48px
    }
    
    .scrollup .arrows {
        height: 48px;
         48px;
        float: left;
        background: url("http://images.cnblogs.com/cnblogs_com/crackpotisback/594328/o_top_up.png") no-repeat left top;
        background-size: 48px;
        transition: background 0.5s ease 0s;
       
        cursor: pointer
    }
    
    .scrollup .arrows:hover {
        background-position: left bottom
    }
    
    #mainContent #post_detail .postTitle {
        margin-top: 0;
        padding: 10px;
        /* background: #404a58; */
        color: #fff;
        font-size: 1.875rem;
    
    }
    
    #mainContent #post_detail .postTitle a {
        border-bottom: 3px solid #eee;
        color: #333;
        text-align: left;
        font-weight: 700;
        font-size: 30pt;
        display: block;
        -webkit-margin-before: 0.67em;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    #mainContent #post_detail .post {
        overflow: hidden;
        margin-bottom: 20px;
        box-shadow: 0 0 0 0, 0 0 12px rgba(34, 34, 34, 0.1);
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        background-color: #fff;
    }
    #mainContent #post_detail #cnblogs_post_body table{
        margin-top:20px;
        margin-bottom:20px;
    }
    #mainContent #post_detail #cnblogs_post_body h1 {
        margin-top: 20px;
        border-bottom: 3px solid #eee;
        color: #333;
        text-align: left;
        font-weight: 700;
        font-size: 32pt;
    }
    
    #mainContent #post_detail #cnblogs_post_body h2 {
        margin-top: 20px;
        border-bottom: 1px solid #eee;
        color: #333;
        text-align: left;
        font-weight: 100;
        font-size: 28pt;
    }
    
    #mainContent #post_detail #cnblogs_post_body h3 {
        margin-top: 20px;
        color: #333;
        text-align: left;
        font-weight: 600;
        font-size: 22pt;
    }
    
    #mainContent #post_detail #cnblogs_post_body h4 {
        margin-top: 20px;
        color: #333;
        text-align: left;
        font-weight: 600;
        font-size: 16pt;
    }
    
    #mainContent #post_detail #cnblogs_post_body h5{
        margin-top: 20px;
        color: #333;
        text-align: left;
        font-weight: 600;
        font-size: 12pt;
    }
    
    #mainContent #post_detail #cnblogs_post_body h6{
        margin-top: 20px;
        color: #333;
        text-align: left;
        font-weight: 600;
        font-size: 10pt;
    }
    #mainContent #post_detail #cnblogs_post_body a:hover{
        color:#da6a61
    }
    #mainContent #post_detail #cnblogs_post_body a {
        color: #2196F3;
        transition:all 0.2s;
    }
    
    #mainContent #post_detail #cnblogs_post_body li {
        text-align: left;
        font-size: 16px;
    }
    
    #mainContent #post_detail #cnblogs_post_body ol, #mainContent #post_detail #cnblogs_post_body ul {
        padding-top: 10px;
    }
    
    #MySignature {
        margin-top: 24px;
        padding: 20px;
        border-left: 8px solid #2196F3;
        border-radius: 4px;
        background-color: #f5f5f5;
        box-shadow: 0 0 1px #d9d9d9;
        font-size: 1.25rem;
    }
    
    #BlogPostCategory, #EntryTag {
        font-size: 1em;
    }
    #BlogPostCategory a:hover
    {
        background-color: #ff5a4e;
    }
    #BlogPostCategory a, #EntryTag a {
        padding: 6px;
        border-radius: 4px;
        background-color: #03a9f4;
        color: #fff;
        transition:all 0.2s;
    }
    
    #EntryTag {
        margin-top: 10px;
    }
    
    #blog_post_info_block {
        margin-top: 20px;
    }
    
    #green_channel {
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 20px;
         auto!important;
        border: medium none;
        border-radius: 2px;
        background: #f5f5f5 none repeat scroll 0 0;
        color: #fff;
        text-align: center;
        font-weight: 400;
        font-size: 1rem;
    }
    
    #green_channel a {
        display: inline-block;
        margin-right: 10px;
        padding: 3px 8px;
        border-radius: 20px;
        color: #fff;
        vertical-align: middle;
        text-shadow: 0 -1px 1px rgba(0, 0, 0, .25);
        font-weight: 400;
        font-size: 1.2em;
        cursor: pointer;
    }
    
    #author_profile {
        display: none;
        background-color: rgba(0, 0, 0, .6);
    }
    
    #post_next_prev{
    font-size: 18px;
    display: inline-block;
    }
    #post_next_prev a:nth-of-type(2n){height: 35px;display: inline-block;font-size: 24px;transition:0.5s;-webkit-transition:0.5s;-moz-transition:0.5s;}
    #post_next_prev a:nth-of-type(2n):before{
    position: absolute;
     30px;
    content: "";
    background: url(http://images.cnitblog.com/blog/708426/201501/082257221093724.png) no-repeat left 11px;
    height: 35px;
    display: inline-block;
    background-size: 24px 24px;
    overflow: visible;
    opacity:0;
    transition:0.5s;
    -webkit-transition:0.5s;
    -moz-transition:0.5s;
    }
    #post_next_prev a:hover {
        color: #b94a48 !important;
        text-decoration: none !important;
    }
    #post_next_prev a:nth-of-type(2n):hover{
    transform:translateX(35px);
    -webkit-transform:translateX(35px);
    -moz-transform:translateX(35px);
    }
    #post_next_prev a:nth-of-type(2n):hover:before{
    transform:translateX(-35px);
    -webkit-transform:translateX(-35px);
    -moz-transform:translateX(-35px);
    opacity:1;
    }
    #post_next_prev a.p_n_p_prefix:link{
        display:none;
    }
    #digg_tips {
        color: #7e8c8d;
        font-size: .8em;
    }
    
    #bury_count, #digg_count {
        color: #ff0404;
        font-size: 3pc;
    }
    
    #post_detail .postDesc {
        background-color: hsla(0, 0%, 100%, .4);
        color: #9fa4a4;
        text-align: center;
        font-size: 1em;
        line-height: 2.8125rem;
    }
    
    #post_detail .postDesc a {
        color: #9fa4a4;
        font-size: 1em;
    }
    
    #commentform_title {
        margin-bottom: 10px;
        padding: 0;
        background: transparent none repeat scroll 0 0;
        color: #7e8c8d;
        font-size: 1.3125rem;
    }
    
    .commentbox_main {
        position: relative;
        margin-top: 20px;
        border-top: 1px solid #ccc;
        border-radius: 3px;
        background-color: #fff;
    }
    
    #comment_form {
        overflow: hidden;
        margin: 0 0 20px;
        padding: 20px;
        box-shadow: 0 0 0 0, 0 6px 12px rgba(34, 34, 34, 0.1);
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        background-color: #fff;
    }
    
    #comment_form_container p {
        color: #9fa4a4;
    }
    
    #comment_nav {
        text-align: right;
    }
    
    #comment_nav a:hover {
        color: #04477d
    }
    
    #comment_nav a {
        display: inline-block;
        margin-top: 1pc;
        margin-right: 20px;
        color: #c1c1c1;
        font-size: .8em;
    }
    
    #cnblogs_post_body img {
        max- 100%!important;
        border-radius: 5px;
        box-shadow: 0px 2px 2px rgba(0, 0, 2, .2);
    }
    
    .emoji {
        box-shadow: 0px 0px 0px rgba(0, 0, 0, 0)!important;
    }
    
    div.commentform input.author {
        margin-top: 20px;
        padding: 0 15px;
         300px;
        height: 35px;
        border: 1px solid #ddd;
        border-radius: 3px;
        background: transparent none repeat scroll 0 0;
        color: #9fa4a4;
        font-size: .875rem;
        line-height: 2.1875rem;
    }
    
    .commentbox_title_right {
        float: left;
    }
    
    .commentbox_title {
        padding-left: 15px;
         100%;
        height: 30px;
        background: #f5f5f5 none repeat scroll 0 0;
        line-height: 1.875rem;
    }
    #tbCommentBody,input[type=text]{padding: 0px 12px;font-size: 14px;line-height: 1.42857143;color: #1497d6;background-color: #fff;border: 1px solid #d6d6d6;border-radius: 3px;-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);box-shadow: inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;}
    #tbCommentBody:focus,input[type=text]:focus{
        border-color: #66afe9;
        outline: 0;
        -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
        box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)
    }
    #tbCommentBody{
    max-100%;
     100%;
    height: 150px;
    background:#fff url(http://images.cnitblog.com/blog/708426/201501/082214147965461.png) right bottom no-repeat;
    padding-top:8px;
    }
    
    #commentbox_opt #btn_comment_submit:hover {
        background-color: #036e9e
    }
    
    #commentbox_opt #btn_comment_submit {
        float: right;
        margin-top: 20px;
        margin-left: 15px;
         90pt;
        height: 37px;
        border: medium none;
        border-radius: 3px;
        background-color: #03A9F4;
        color: #FFF;
        cursor: pointer;
        transition: background 0.3s ease;
        box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2) inset, 0 1px 1px rgba(0, 0, 0, 0.3)
    }
    
    #commentbox_opt a {
        float: right;
        display: inline-block;
        margin-top: 20px;
        height: 37px;
        color: #c1c1c1;
        font-size: .9375rem;
        line-height: 2.3125rem;
    }
    
    .feedbackItem {
        margin-bottom: 20px;
        /* box-shadow: 0 0 0 0, 0 6px 12px rgba(34, 34, 34, 0.1); */
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
    }
    
    .feedbackManage {
        float: right;
    }
    
    .feedbackManage a {
        display: inline-block;
        color: #c1c1c1;
        font-size: 1em;
    }
    
    .feedbackListSubtitle {
        margin-top: 0;
        padding: 12px 20px;
        text-align: left;
        background: #fff;
        border-radius: 10px 10px 0 0;
    }
    
    .feedbackListSubtitle a {
        color: #ffffff;
        margin-right: 10px;
        background: #667385;
        padding-left: 10px!important;
        padding-right: 10px!important;
        border-radius: 1000px;
    }
    
    .blog_comment_body {
        position: relative;
        padding: 15px 20px;
        background-color: #fff;
        border-radius: 0px 0px 10px 10px;
        box-shadow: 0 0 0 0, 0 0 12px rgba(34, 34, 34, 0.1);
    }
    
    .comment_vote {
        position: relative;
        overflow: visible;
        padding: 4px;
        border-radius: 0 0 2px 2px!important;
        /* background-color: #f4f4f4; */
        color: #4d4d4d;
        font-size: 1pc;
        margin: 10px;
        /* margin-bottom: 10px; */
    }
    
    .comment_vote :hover {
        background-color: #026896
    }
    
    .comment_vote a {
        display: inline-block;
        margin-right: 10px;
        padding: 5px;
        border-radius: 3px;
        background-color: #03A9F4;
        box-shadow: 0 -1px 0 rgba(0, 0, 0, .2) inset, 0 1px 1px rgba(0, 0, 0, .3);
        color: #fff;
        font-size: .8em;
        transition: .3s ease background-color;
    }
    
    .comment_quote {
        padding: 10px;
        border:none;
        border-left: 10px solid #ececec;
        background-color:#f6f6f6;
    }
    
    .comment_quote legend{
        display:none;
    }
    
    fieldset.comment_quote a {
        color: #fb6362;
        text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
    }
    
    .gallery, .galleryTitle {
        font-size: 1.4em;
    }
    
    .galleryTitle {
        margin-top: 0;
        padding: 10px 30px;
        background-color: #404a58;
        box-shadow: 2px 2px 0 rgba(0, 0, 0, .2);
        color: #fff;
        text-align: center;
    }
    
    img#ViewPicture1_GalleryImage {
        display: block;
        max- 100%;
        min- 100%;
        box-shadow: 4px 4px 2px rgba(0, 0, 0, .1);
    }
    
    #ViewPicture1_OriginalImage, #ViewPicture1_ReturnUrl {
        display: inline-block;
        padding: 1pc;
        border-radius: 5px;
        background-color: #fb6362;
        box-shadow: 0 -1px 0 rgba(0, 0, 0, .2) inset, 0 1px 1px rgba(0, 0, 0, .3);
        color: #fff;
        text-align: center;
        font-size: .8em;
        cursor: pointer;
        transition: background .3s ease 0;
    }
    
    #homepage_top_pager {
        display: none;
    }
    #myposts .pager{
        margin-bottom: 50px;
    }
    .pager {
        color: #404a58;
        font-size: 1pc;
        line-height: 1.875rem;
    }
    
    .pager a {
        padding: 10px;
        border: 0 none;
        border-radius: 3px;
        background-color: #00ace4;
        color: #fff;
        cursor: pointer;
        transition: .3s ease background-color;
    }
    
    .pager a:hover {
        border-radius: 3px;
        background-color: #017196;
        color: #fff;
    }
    
    .entrylistPosttitle {
        position: relative;
        top: 10px;
        overflow: hidden;
        margin: 10px auto;
        padding-left: 20px;
        border-left: 5px solid #e84c3d;
        background: #fff none repeat scroll 0 0;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.5rem;
    }
    
    .entrylistPosttitle a {
        color: #000;
        font-size: 1.5rem;
        transition: color .3s ease 0;
    }
    
    .entrylistItemPostDesc {
        padding: 0 110px 0 10px;
        min-height: 50px;
        border-top: 1px solid #dee1e0;
        line-height: 3.125rem;
    }
    
    .entrylistItem {
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 2px;
        background-color: #fff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    }
    
    h1.entrylistTitle {
        padding: 10px;
        background-color: #404a58;
        font-size: 1.5rem;
    }
    
    .entrylistDescription, h1.entrylistTitle {
        box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
        color: #f5f5f5;
    }
    
    .entrylistDescription {
        padding: 6px;
        background-color: rgba(64, 74, 88, .6);
        font-size: 1.125rem;
    }
    
    .ad_text_commentbox, .c_ad_block {
      
        margin: 0;
        padding: 0;
    }
    
    #ad_under_google {
        overflow: hidden;
        height: 0;
    }
    
    
    
    #myposts .PostList {
        border-left-color: #00ace4;
        border-left- 7px;
        margin-bottom: 20px;
        padding: 30px 20px;
        box-shadow: 0 0 0 0, 0 6px 12px rgba(34, 34, 34, 0.1);
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        background-color: #fff;
        font-size: 25px;
        overflow: hidden;
    
    }
    
    .PostList a {
        color: #3c3c3c;
    }
    
    .PostList span {
        color: #808080;
    }
    #myposts .postText2{
        overflow:hidden;
    }
    
    #ad_under_google, #ad_under_google a, #blog-comments-placeholder .feedback_area_title, #blog-sidecolumn #sidebar_postarchive, #c_ad_block, #catListTitle, #div-gpt-ad-1320933818841-0, #div-gpt-ad-1320933818841-1, #google_ad_c1, #google_ad_c2,  .blogStats, #sideBarMain #widget_my_google, #site_nav_under, #tip-arrow-bottom, #tip-arrow-top, #trans-tooltip, .commentbox_title_left, [hidden], audio:not([controls]), template {
       
    }
    
    button, hr {
        overflow: visible;
    }
    
    details, main, summary {
        display: block;
    }
    
    #navList a.aHeaderXML img, audio, canvas, iframe, img, svg, video {
        vertical-align: middle;
    }
    
    #main #mainContent .day .postDesc a, .entrylistItemPostDesc, .entrylistItemPostDesc a {
        color: #bfbfbf;
    }
    
    #blog-sidecolumn li>a:hover, #main #mainContent .postTitle a:hover, .entrylistPosttitle:hover a {
        color: #00abff;
    }
    
    #blog-sidecolumn ul, #mainContent #post_detail .postBody {
        padding: 30px 30px;
    }
    
    #comment_nav, .topicListFooter #nav_next_page {
        text-align: right;
    }
    
    #ad_t2, #ad_under_post_holder, #blog_news_kb, #comment_nav, #google_ad_c2, #site_nav_under, #under_post_kb, #under_post_news, blog_news_kb, google_ad_c2 {
        display: none!important;
    }
    
    
    
    blockquote {
        border: 0px;
        border-left: 10px solid #ececec;
        border-radius: 3px;
        background-color: #f6f6f6;
    }
    
    @media screen and (max-768px) {
        #sideBar {
       
        }
        #navigator {
            background-color: #253444;
            box-shadow: none;
        }
        #main #mainContent {
            margin: 0;
             100%;
        }
        #main {
            margin: 0;
        }
        #topics {
            margin-left: 0!important;
        }
        .cnblogs_Highlighter {
            max- 100%!important;
        }
        #blog-sidecolumn ul, #mainContent #post_detail .postBody {
            padding: 10px 10px;
        }
        #main #mainContent .dayTitle {
           
        }
        #mainContent #post_detail .post {
            border-radius: 0px;
        }
        #main #mainContent .day {
            margin-bottom: 0;
        }
        #main #mainContent .day:hover {
            box-shadow: none;
        }
        #blogTitle h1 {
            margin-bottom: 5%;
        }
        #home div#imgBar {
            display: none!important;
        }
        .topicListFooter #nav_next_page a {
             100%;
            border-radius: 0px;
            background-color: #00ace4;
            transition: .3s ease background-color;
        }
        #customFooter ul li {
         100%;
        margin-left: 0!important;
        margin-bottom: 25px!important;
        }
    }
    
    .back-top.attached>a {
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, .3);
        opacity: 1;
    }
    
    .back-top>a {
        position: fixed;
        right: 2%;
        bottom: 30px;
        z-index: 1030;
        display: block;
         60px;
        height: 60px;
        border-radius: 100%;
        background-color: rgba(0, 0, 0, .2);
        text-align: center;
        opacity: 0;
        transition: all .5s;
    }
    
    #customFooter {
        /*   100%; */
        /*  height: 270px; */
        padding: 36px 0;
        background-color: #292929;
        overflow: hidden;
        text-align: center;
    }
    
    #customFooter .footer-title {
        font-size: 34px;
        color: #fff;
        line-height: 1;
        margin-bottom: 52px;
        font-weight: 600;
    }
    
    #customFooter ul {
        display: inline-block;
        list-style: none;
    }
    
    #customFooter ul li {
        float: left;
        margin: 0 40px;
    }
    
    #customFooter ul a {
        color: #c8c8c8;
        font-size: 24px;
        text-decoration: none;
    }
    
    #customFooter ul a:hover, #customFooter ul a:active {
        color: #fff;
    }
    
    #copyright {
        font-size: 14px;
        color: #707070;
        margin-top: 56px;
    }
    a.digg_gray:hover {
        display:none;
        color: #776a6a;
        text-decoration: underline;
    }
    pre {
        /*控制代码不换行*/
        white-space: pre;
        word-wrap: normal;
        font-family: Consolas,Monaco, monospace,Ubuntu Mono,"Source Code Pro",Courier New!important;
    }
    
    .cnblogs-markdown .hljs {
        display: block;
        overflow-x: auto;
        white-space: pre;
        font-family: Consolas,Monaco, monospace,Ubuntu Mono,"Source Code Pro",Courier New!important;
        word-break: normal;
    }
    
    .cnblogs-markdown code {
        font-family: Consolas,Monaco, monospace,Ubuntu Mono,"Source Code Pro",Courier New!important;
    }
    
    .emoji {
        display: inline-block;
        margin-bottom: .25em;
         32px;
        height: 32px;
        background-size: contain;
    }
    .emoji2{
        display: inline-block;
        margin-bottom: .25em;
         32px;
        height: 32px;
        background-size: contain;
        border-radius: 0px!important;
        box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0)!important;
    }
    .MathJax_Display img {
        border-radius: 0px!important;
        box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0)!important;
    }
    .MathJax{outline:0;}
    
    
    
    
    
    /*标题2*/
    #cnblogs_post_body h2 {
        color: #fff;
        padding-left: 15px;
        background-color: #84d0f3  !important;
        text-shadow: 2px 2px 3px #222222;
        font-family: "微软雅黑" , "宋体" , "黑体" ,Arial;
        margin-bottom: 5px;
    }
    /*标题3*/
    #cnblogs_post_body h3 {
        color: #6FA833;
        border-left: 13px solid #84c6ff;
        padding: 5px;
        background-color: #f5f5f5;
    }
    
    
    
    
    
    
    #sidebar_postcategory li{
        overflow: hidden;
         auto!important;
        border-bottom:none!important;
        text-overflow: ellipsis;
        white-space: normal!important;
        font-size: 15px!important;
        line-height: 1.5rem!important;
        display: inline-block;
    }
    #sidebar_postcategory li a:hover{
        background-color:#4CAF50;
    }
    
    #sidebar_postcategory li a{
        background-color: #607D8B;
        color:#fff!important;
        padding: 2px 7px;
        line-height: 1.5em;
        display: inline-block;
        text-decoration: none;
        transition:all 0.2s!important;
        border-radius: 3px;
    }
    
    
    
    #sidebar_postcategory li{
        overflow: hidden;
         auto!important;
        border-bottom:none!important;
        text-overflow: ellipsis;
        white-space: normal!important;
        font-size: 12px!important;
        line-height: 1.5rem!important;
        display: inline-block;
    }
    #sidebar_postcategory li a:hover{
        background-color:#4CAF50;
    }
    
    #sidebar_postcategory li a{
        background-color: #607D8B;
        color:#fff!important;
        padding: 2px 7px;
        line-height: 1.5em;
        display: inline-block;
        text-decoration: none;
        transition:all 0.2s!important;
        border-radius: 3px;
    }
    CSS主体

    侧边栏

    <script>  
    // 浏览器标题切换  
    var OriginTitile = document.title;    // 保存之前页面标题  
    var titleTime;  
    document.addEventListener('visibilitychange', function(){  
        if (document.hidden){  
            document.title ='你不要我了吗?QWQ';  
            clearTimeout(titleTime);  
        }else{  
            document.title = '~(o°ω°o) ';  
            titleTime = setTimeout(function() {  
                document.title = OriginTitile;  
            }, 1000); // 2秒后恢复原标题  
        }  
    });  
    </script>
    浏览器标题切换
    <!--富强民主点击特效-->
    <script type="text/javascript"> 
    /* 鼠标特效 */ 
    var a_idx = 0; 
    var b_idx = 0; 
    /*   文字和颜色数组 */
    var a = new Array("富强", "民主", "文明", "%%%%%%%%%%%%%", "自由", "平等", "公正" ,"法治", "爱国", "敬业", "诚信", "友善"); 
    var b = new Array("#FF0000","#FF7F00"," #FFFF00","#00FF00","#00FFFF","#0000FF","#8B00FF","#FF0000","#FF7F00"," #FFFF00","#00FF00","#00FFFF","#0000FF","#8B00FF");
    jQuery(document).ready(function($) { 
        $("body").click(function(e) { 
           
            var $i = $("<span/>").text(a[a_idx]); 
              a_idx=parseInt(12*Math.random()); //文字随机数
              b_idx=parseInt(14*Math.random()); //颜色随机数
            var x = e.pageX, 
            y = e.pageY; 
            $i.css({ 
                "z-index": 999, 
                "font-size":"1.3em",            //字体大小
                "top": y - 20, 
                "left": x, 
                "position": "absolute", 
                "font-weight": "bold", 
                "color": b[b_idx] 
            }); 
            $("body").append($i); 
            $i.animate({ 
                "top": y - 180, 
                "opacity": 0 
            }, 
            1500, 
            function() { 
                $i.remove(); 
            }); 
        }); 
    }); 
    </script>
    <!--富强民主点击特效-->
    富强民主点击特效
    <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=QQ号&amp;site=qq&amp;menu=yes">
      <img align="absmiddle" border="0" src="http://wpa.qq.com/pa?p=2:343716061:41 &amp;r=0.30709030851721764" alt="欢迎与我联系" title="欢迎与我联系">
    </a>
    QQ联系(QQ号请自己填写)
    <div align="center"><a href="http://www.amazingcounters.com"><img border="0" src="http://cc.amazingcounters.com/counter.php?i=3213826&c=9641791" alt="AmazingCounters.com"></a></div>
    计数器
    <font color="#FF0000">一</font><font color="#DF0020">言</font><font color="#BF0040">(</font><font color="#9F0060">ヒ</font><font color="#7F0080">ト</font><font color="#5F00A0">コ</font><font color="#3F00C0">ト</font><font color="#1F00E0">)</font>
    <script type="text/javascript" src="https://api.i-meto.com/hitokoto?encode=js"></script>
    <div id="hitokoto"><script>hitokoto()</script></div>
    
    <font color="#DB0024">Q</font><font color="#C90036">Q</font><font color="#B70048">:</font><font color="#A5005A">7</font><font color="#93006C">5</font><font color="#81007E">7</font><font color="#6F0090">3</font><font color="#5D00A2">9</font><font color="#4B00B4">4</font><font color="#3900C6">0</font><font color="#2700D8">2</font><font color="#1500EA">6</font>
    一言

    最上面的天气预报大家可以百度“心知天气”,获取自己的html代码

    页首HTML

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <title>Evanyou Blog 彩带</title>
        <style>
        canvas {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 0;
             100%;
            height: 100%;
            pointer-events: none;
        }
        </style>
    </head>
    
    <body>
        <canvas width="2560" height="7292"></canvas>
        <script>
        document.addEventListener('touchmove', function(e) {
            e.preventDefault()
        })
        var c = document.getElementsByTagName('canvas')[0],
            x = c.getContext('2d'),
            pr = window.devicePixelRatio || 1,
            w = window.innerWidth,
            h = window.innerHeight,
            f = 90,
            q,
            m = Math,
            r = 0,
            u = m.PI * 2,
            v = m.cos,
            z = m.random
        c.width = w * pr
        c.height = h * pr
        x.scale(pr, pr)
        x.globalAlpha = 0.6
    
        function i() {
            x.clearRect(0, 0, w, h)
            q = [{ x: 0, y: h * .7 + f }, { x: 0, y: h * .7 - f }]
            while (q[1].x < w + f) d(q[0], q[1])
        }
    
        function d(i, j) {
            x.beginPath()
            x.moveTo(i.x, i.y)
            x.lineTo(j.x, j.y)
            var k = j.x + (z() * 2 - 0.25) * f,
                n = y(j.y)
            x.lineTo(k, n)
            x.closePath()
            r -= u / -50
            x.fillStyle = '#' + (v(r) * 127 + 128 << 16 | v(r + u / 3) * 127 + 128 << 8 | v(r + u / 3 * 2) * 127 + 128).toString(16)
            x.fill()
            q[0] = q[1]
            q[1] = { x: k, y: n }
        }
    
        function y(p) {
            var t = p + (z() * 2 - 1.1) * f
            return (t > h || t < 0) ? y(p) : t
        }
        document.onclick = i
        document.ontouchstart = i
        i()
        </script>
    </body>
    
    </html>
    背景彩带效果
    <!DOCTYPE html>
        <style type="text/css">
            * {
                margin: 0;
                padding: 0;
            }
            /*防止body的高度为100px,加1px padding实现了把body撑开*/
            body{
                padding:0px;
            }
            .test {
                 0px;
                height: 0px;
                background-color: #000;
                margin: 0px 0 0px 0px;
            }
        </style>
    </head>
    <body>
        <div class="test"></div>
        <script>
            ;(function (w,d) {
                var domDiv = d.createElement('div');
                //修改domDiv的行内样式
                domDiv.style.cssText = 'position: fixed; top: 0; left: 0;  0; height: 7px;'+'box-shadow: 0 0 3px #999; background: -webkit-linear-gradient(left, red , blue );; z-index: 999999; -webkit-transition:width .3s linear;'
                //append是jquery的方法,dom对象的是appendchild();
                d.body.appendChild(domDiv);
                //domH:可视区域的高度
                var domH = w.innerHeight||d.documentElement.clientHeight||d.body.clientHeight;
                /**
                 * [通过给window添加scroll事件实现了监控的作用。]
                 * @param  {[type]} ){                var divsw         [description]
                 * @param  {[type]} false      [冒泡阶段]
                 * @return {[type]}            [description]
                 * pageYOffset:滚到了视口顶部的高度。
                 * document.body.offsetHeight:body的高度
                 */
                w.addEventListener('scroll',function(){
                    var divsw = domDiv.style.width = Math.round(pageYOffset/(d.body.offsetHeight-domH)*100)+'%';
                    /*if(parseInt(divsw,10)>50){
                        domDiv.style.backgroundColor = '#00f';
                    }else{
                        domDiv.style.backgroundColor = '#f00808';
                    }*/
                },false);
            })(window,document);
        </script>
    <!--PageEndHtml Block End-->
    </body>
    </html>
    
    
    <script type="text/javascript">
    //window.console&&console.log("去除google广告!避免浏览器状态栏一直显示加载");
    var canShowAdsense=function(){return !!0};
    //setTimeout(function(){
    //$("iframe[id^=google],iframe[src*=google]").remove();},2000);
    </script>
    
    
    
    <link type="text/css" rel="stylesheet" href="https://files.cnblogs.com/files/zwfymqz/shCoreEmacs.css"/>
    <link type="text/css" rel="stylesheet" href="https://files.cnblogs.com/files/zwfymqz/shThemeEmacs.css"/>
    
    
    
    <link href="https://files.cnblogs.com/files/widerg/nav.css" rel="stylesheet"></link>
    <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"></link>
    <script src="https://cdn.bootcss.com/animejs/2.0.2/anime.min.js"></script>
    <script src="https://files.cnblogs.com/files/widerg/utils.js?version=1.3"></script>
    <script src="https://files.cnblogs.com/files/widerg/fireworks.js?version=1.3"></script>
    <script src="https://files.cnblogs.com/files/zwfymqz/modernizr.custom.js"></script>
    <script src="https://files.cnblogs.com/files/zwfymqz/dlmenu.js"></script>
    <script src="https://cdn.bootcss.com/emojify.js/1.1.0/js/emojify.min.js"></script>
    
    
    <div id="dl-menu" class="dl-menuwrapper">
        <button class="dl-trigger">Open Menu</button>
        <ul class="dl-menu">
                <li><a href="http://attack204.com/"><i aria-hidden="true" class="fa fa-globe fa-fw"></i>&nbsp;我的网站</a></li>
                <li><a href="http://zwfymqz.cnblogs.com/"><i aria-hidden="true" class="fa fa-home fa-fw"></i>&nbsp;首页</a></li>
                <li><a href="https://i.cnblogs.com/EditPosts.aspx?opt=1"><i aria-hidden="true" class="fa fa-pencil fa-fw"></i>&nbsp;新随笔</a></li>
                <li><a href="https://msg.cnblogs.com/send?recipient=%E8%87%AA%E4%B8%BA%E9%A3%8E%E6%9C%88%E9%A9%AC%E5%89%8D%E5%8D%92"><i aria-hidden="true" class="fa fa-link fa-fw"></i>&nbsp;联系</a></li>
                <li><a href="http://www.cnblogs.com/zwfymqz/rss"><i aria-hidden="true" class="fa fa-rss fa-fw"></i>&nbsp;订阅</a></li>
                <li><a href="https://i.cnblogs.com/"><i aria-hidden="true" class="fa fa-cog fa-fw"></i>&nbsp;管理</a></li>
        </ul>
    </div>
    
    <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?74ea64bad6ab0292a2fd9a69fac161cc";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
    </script>
    页首主体

    页脚HTML

    <!--网易云播放器样式-->
    <link rel="stylesheet" type="text/css" href="https://files.cnblogs.com/files/zwfymqz/wyyyy2.css" />
    <div class="menu-wrap">
        <embed frameborder="no" border="0" marginwidth="0" marginheight="0" width=280 height=355 src="//music.163.com/outchain/player?type=0&id=652849532&auto=0&height=430"></embed>
    </div>
    <button class="menu-button" id="open-button"><img class="menu-rotation" src="https://files.cnblogs.com/files/zwfymqz/music.gif "><span>Open Menu</span></button>
    <div class="content-wrap"></div>
    <script src="https://files.cnblogs.com/files/zwfymqz/wyyyy2.js "></script>
    <script src="https://files.cnblogs.com/files/zwfymqz/wyyyy3.js"></script>
    <!--网易云播放器样式end-->
    网易云播放器
    <script language="javascript" type="text/javascript">
    // 生成目录索引列表
    // ref: http://www.cnblogs.com/wangqiguo/p/4355032.html
    // modified by: zzq
    function GenerateContentList()
    {
        var mainContent = $('#cnblogs_post_body');
        var h2_list = $('#cnblogs_post_body h2');//如果你的章节标题不是h2,只需要将这里的h2换掉即可
    
        if(mainContent.length < 1)
            return;
     
        if(h2_list.length>0)
        {
            var content = '<a name="_labelTop"></a>';
            content += '<div id="navCategory" style="color:#152e97;">';
            content += '<p style="font-size:18px;"><b>目录</b></p>';
            content += '<ul>';
            for(var i=0; i<h2_list.length; i++)
            {
                var go_to_top = '<div style="text-align: right;"><a href="#_labelTop" style="color:#f68a33">回到顶部</a><a name="_label' + i + '"></a></div>';
                $(h2_list[i]).before(go_to_top);
                
                var h3_list = $(h2_list[i]).nextAll("h3");
                var li3_content = '';
                for(var j=0; j<h3_list.length; j++)
                {
                    var tmp = $(h3_list[j]).prevAll('h2').first();
                    if(!tmp.is(h2_list[i]))
                        break;
                    var li3_anchor = '<a name="_label' + i + '_' + j + '"></a>';
                    $(h3_list[j]).before(li3_anchor);
                    li3_content += '<li><a href="#_label' + i + '_' + j + '">' + $(h3_list[j]).text() + '</a></li>';
                }
                
                var li2_content = '';
                if(li3_content.length > 0)
                    li2_content = '<li><a href="#_label' + i + '">' + $(h2_list[i]).text() + '</a><ul>' + li3_content + '</ul></li>';
                else
                    li2_content = '<li><a href="#_label' + i + '">' + $(h2_list[i]).text() + '</a></li>';
                content += li2_content;
            }
            content += '</ul>';
            content += '</div><p>&nbsp;</p>';
            content += '<hr style="height:1px;border:none;border-top:1px dashed #0066CC;"/>';
            if($('#cnblogs_post_body').length != 0 )
            {
                $($('#cnblogs_post_body')[0]).prepend(content);
            }
        }   
    }
    
    GenerateContentList();
    </script>
    生成目录索引
    <script type="text/javascript" src="https://blog-static.cnblogs.com/files/jackson0714/Comments.js"></script>
    
    
    
    
    
    <script src="http://files.cnblogs.com/files/flipped/prettify.js"></script>
    <script type="text/javascript">
    (function() {
         $("pre").addClass("prettyprint");
         prettyPrint();
    })();
    </script>
    
    
    
    <style>
    #back-top {
         position: fixed;
         bottom: 10px;
         right: 5px;
         z-index: 99;
    }
    #back-top span {
          56px;
         height: 170px;
         display: block;
         background:url(http://images.cnblogs.com/cnblogs_com/seanshao/855033/o_rocket.png)no-repeat center center;
    }
    #back-top a{outline:none}
    </style>
    <script type="text/javascript">
    $(function() {
        // hide #back-top first
        $("#back-top").hide();
        // fade in #back-top
        $(window).scroll(function() {
            if ($(this).scrollTop() > 500) {
                $('#back-top').fadeIn();
            } else {
                $('#back-top').fadeOut();
            }
        });
        // scroll body to 0px on click
        $('#back-top a').click(function() {
            $('body,html').animate({
                scrollTop: 0
            }, 800);
            return false;
        });
    });
    </script>
    <p id="back-top" style="display:none"><a href="#top"><span></span></a></p>
    
    
    
    
    
    
    
    
    <div id="customFooter">
        <h1 class="footer-title">Contact with me</h1>
        <ul>
            <li><a href="https://weibo.com/u/5379824760" target="_blank"><i aria-hidden="true" class="fa fa-weibo fa-fw"></i>weibo</a></li>
            <li><a href="https://github.com/attack204" target="_blank"><i aria-hidden="true" class="fa fa-github fa-fw"></i>Github</a></li>
            <li><a href="http://wpa.qq.com/msgrd?v=3&uin=757394026&site=qq&menu=yes" target="_blank"><i aria-hidden="true" class="fa fa-qq fa-fw"></i>QQ</a></li>
               <li><a href="mailto:757394026@qq.com" target="_blank"><i aria-hidden="true" class="fa fa-envelope fa-fw"></i>Email</a></li>
        </ul>
        <p id="copyright">Copyright 2018 自为风月马前卒</p>
    </div>
    
    
    <script type="text/javascript">
    $(function() {
        $('#dl-menu').dlmenu({
            animationClasses: {
                classin: 'dl-animate-in-3',
                classout: 'dl-animate-out-3'
            }
        });
    });
    
    (function(a) { // 控制台输出信息
        if (!a) return;
        var msg = "%c欢迎访问自为风月马前卒的博客,
    鄙人蒟蒻,望各位大佬多加指点.
                                 ------http://zwfymqz.cnblogs.com/";
        if (window.chrome) {
            a.log("%c", "font-size:0;line-height:100px;padding:50px 50px;top:10000px;bottom:100px;background:url(url(//q.qlogo.cn/headimg_dl?bs=qq&dst_uin=757394026&src_uin=www.12580sky.com&fid=blog&spec=240)) no-repeat");
            a.log(msg, "color:#0080FF");
        } else {
            a.log(msg.replace(/%c/g,''));
        }
    })(top.console);
    
    
    
    function createLink(URL,lnkId,charset,media){
        var head = document.getElementsByTagName('head')[0],
            linkTag = null;
    
        if(!URL){
            return false;
        }
    
        linkTag = document.createElement('link');
        linkTag.setAttribute('rel','shortcut icon');
        linkTag.setAttribute('type','image/x-icon');
        linkTag.href = URL;
        head.appendChild(linkTag);
    };
    createLink('http://q.qlogo.cn/headimg_dl?bs=qq&dst_uin=757394026&src_uin=www.12580sky.com&fid=blog&spec=240');
    //$("body").prepend($("<canvas class='fireworks'></canvas>"));
    //用来在head标签中添加link标签
    
    jQuery.fn.wait = function (func, times, interval) {
        var _times = times || -1, //100次
        _interval = interval || 20, //20毫秒每次
        _self = this,
        _selector = this.selector, //选择器
        _iIntervalID; //定时器id
        if( this.length ){ //如果已经获取到了,就直接执行函数
            func && func.call(this);
        } else {
            _iIntervalID = setInterval(function() {
                if(!_times) { //是0就退出
                    clearInterval(_iIntervalID);
                }
                _times <= 0 || _times--; //如果是正数就 --
    
                _self = $(_selector); //再次选择
                if( _self.length ) { //判断是否取到
                    func && func.call(_self);
                    clearInterval(_iIntervalID);
                }
            }, _interval);
        }
        return this;
    };
    $("#sideBar #p_b_follow a").wait(function() {
        $("#sideBar #p_b_follow :contains('+加关注')").html("<i class="fa fa-heart" aria-hidden="true"></i>&nbsp;关注");
    });
    </script>
    页脚html主体
  • 相关阅读:
    python全栈学习--day48
    python全栈学习--day47(HTML-----高级选择器与盒子模型等
    python全栈学习--day46(html---列表,标签,表格,表单,css引入与基本选择器)
    python-面向对象编程设计与开发
    python-知识点的复习2
    python-知识点的复习
    python-re模块
    python-logging模块
    python-hash和md5算法
    python-配置文件的处理configpasser模块
  • 原文地址:https://www.cnblogs.com/zwfymqz/p/9670607.html
Copyright © 2011-2022 走看看