博客园美化样式定制

博客园导航栏添加链接(放入页首HTML)

<script type="text/javascript">
    function nav_add_menu(name,href,inner_id){   //参数含义:导航显示名字,链接地址,设置id(便于后续样式设置)
        var parent=document.getElementById("navList");
        var lii=document.createElement("li");
        var aa=document.createElement("a");
        aa.setAttribute("id",inner_id);
        aa.setAttribute("class","menu");
        aa.setAttribute("href",href);
        aa.innerHTML=name;
        lii.appendChild(aa);
        parent.appendChild(lii);
    }
    nav_add_menu("Github","http://www.github.com/xiaxuxu","mygithub");//调用就可以了
    </script>

添加右边感谢送钱功能(放入页首HTML)

<script src="http://static.tctip.com/tctip-1.0.0.min.js"></script>
  <script>  
  new tctip({
    top: '20%',
    button: {
      id: 9,
      type: 'dashang',
    },
    list: [      {        type: 'alipay',        qrImg: 'https://images2018.cnblogs.com/blog/922103/201804/922103-20180419193738327-201606925.png'      }, {        type: 'wechat',        qrImg: 'https://images2018.cnblogs.com/blog/922103/201804/922103-20180419164441521-932876833.jpg'      }    ]
  }).init()
  </script>

代码Sublime样式

/*
Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/
*/
pre {
/*控制代码不换行*/
    white-space: pre;
    word-wrap: normal;
}
.cnblogs-markdown .hljs {
    font-size: 16px!important;
    font-family: consolas,monospace !important;
    display: block;
    overflow-x: auto;
    padding: 0.5em;
    background: #23241f !important;
    color: #FFF;
    white-space: pre;
    word-break: normal;
    padding: 10px 15px !important;
}

.hljs,
.hljs-tag,
.hljs-subst {
  color: #f8f8f2;
}

.hljs-strong,
.hljs-emphasis {
  color: #a8a8a2;
}

.hljs-bullet,
.hljs-quote,
.hljs-number,
.hljs-regexp,
.hljs-literal,
.hljs-link {
  color: #ae81ff;
}

.hljs-code,
.hljs-title,
.hljs-section,
.hljs-selector-class {
  color: #a6e22e;
}

.hljs-strong {
  font-weight: bold;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-name,
.hljs-attr {
  color: #f92672;
}

.hljs-symbol,
.hljs-attribute {
  color: #66d9ef;
}

.hljs-params,
.hljs-class .hljs-title {
  color: #f8f8f2;
}

.hljs-string,
.hljs-type,
.hljs-built_in,
.hljs-builtin-name,
.hljs-selector-id,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-addition,
.hljs-variable,
.hljs-template-variable {
  color: #e6db74;
}

.hljs-comment,
.hljs-deletion,
.hljs-meta {
  color: #75715e;
}

关闭广告

/* adblock */
#ad_t2 {
    display: none;
}
.c_ad_block {
    display: none;
}

转载于:https://www.cnblogs.com/webdev8888/p/8891316.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值