zoukankan      html  css  js  c++  java
  • 博客园界面美化

    这是博主自用的自定义css,改变了字体大小,代码高亮等方面,让文章有更好的阅读效果。

    CSS代码

    #home{
     85%;
    }
    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;
    }
    
    .hljs,
    .hljs-tag,
    .hljs-subst {
      color: #f8f8f2;
    }
    
    .hljs-strong,
    .hljs-emphasis {
      color: #a8a8a2;
    }
    
    .hljs-bullet,
    .hljs-quote,
    .hljs-number,
    .hljs-regexp,
    .hljs-literal,
    .hljs-link {
      color: #ae81ff;
    }
    
    .hljs-code,
    .hljs-title,
    .hljs-section,
    .hljs-selector-class {
      color: #a6e22e;
    }
    
    .hljs-strong {
      font-weight: bold;
    }
    
    .hljs-emphasis {
      font-style: italic;
    }
    
    .hljs-keyword,
    .hljs-selector-tag,
    .hljs-name,
    .hljs-attr {
      color: #f92672;
    }
    
    .hljs-symbol,
    .hljs-attribute {
      color: #66d9ef;
    }
    
    .hljs-params,
    .hljs-class .hljs-title {
      color: #f8f8f2;
    }
    
    .hljs-string,
    .hljs-type,
    .hljs-built_in,
    .hljs-builtin-name,
    .hljs-selector-id,
    .hljs-selector-attr,
    .hljs-selector-pseudo,
    .hljs-addition,
    .hljs-variable,
    .hljs-template-variable {
      color: #e6db74;
    }
    
    .hljs-comment,
    .hljs-deletion,
    .hljs-meta {
      color: #75715e;
    }
    .cnblogs_code pre {
    font-family: Courier New!important;
    font-size: 18px!important;
    word-wrap: break-word;
    white-space: pre-wrap;
    }
    
    .cnblogs_code span {
    font-family: Courier New!important;
    font-size: 18px!important;
    line-height: 1.5!important;
    }
    .postBody{
    font-size: 16px !important;
    }
    .cnblogs-markdown .hljs, .cnblogs-post-body .hljs{
    font-family: Consolas,"Courier New",sans-serif!important;
    font-size: 15px!important;
    }
    body{
    font-family: "Microsoft YaHei","Helvetica Neue",Helvetica,Verdana,Arial,sans-serif !important;
    }
    #cnblogs_post_body h4 {
        font-size: 17px;
    }
    #topics .postTitle {
       font-size: 170% !important;
    }
    div[id^="ad_"] {
        display: none;
    }
    div[class^="c_ad"] {
        display: none;
    }
    div[id^="under_post"] {
        display: none;
    }
    div[id^="green_channel"]{
    display:none;
    }
    div[id^="author_profile"]{
    display:none;
    }
    div[id^="div_digg"]{
    display:none;
    }
    
  • 相关阅读:
    iis环境异常处理
    cmd常用命令:关机、注销、进入d盘等
    position
    Register Form
    第一周
    Django简介
    前端jQuery基本语法
    前端基础BOM和DOM
    HTML常用标签
    Linux相关 MySQL相关
  • 原文地址:https://www.cnblogs.com/zryabc/p/10385392.html
Copyright © 2011-2022 走看看