首页 新闻 会员 周边

博客园的代码高亮改了一直没变化啊,默认的看着太费眼睛了

0
悬赏园豆:10 [待解决问题]

我引入了

<link rel="stylesheet" href="https://files.cnblogs.com/files/douyaer/1.css">
<script src="https://files.cnblogs.com/files/douyaer/highlight.js"></script>
<script>hljs.initHighlightingOnLoad();</script>

写在了侧面公告栏那个里面,js权限申请了,为何没反应,来个大神啊

body {
    color: #000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    min-height: 101%;
    background: url("http://images.cnblogs.com/cnblogs_com/douyaer/1091781/o_%e5%8d%9a%e5%ae%a21.jpg") top center no-repeat #70CB92;
}
.newsItem{
    position: relative;
}
#navList a {
    margin: 10px 10px 0 0;
    padding: 0 10px;
    font: 25px/1.5em "华文隶书";
    display: block;
}
#boxTime{
    position: relative;
    margin-bottom: 5px;
}
#navList a:hover {
    color: blue;
}
.catListTitle,#sideBarMain{
  margin-top: 0;
}
#navigator {
    background: url("http://images.cnblogs.com/cnblogs_com/douyaer/1091781/o_2.png");
    background-color: rgba(0,0,0,.1);
    height: 60px;
    clear: both;
    margin-top: 60px;
    position: relative;
}


/*.body1 {*/
    /*color: #000;*/
    /*font-family: Verdana, Arial, Helvetica, sans-serif;*/
    /*font-size: 13px;*/
    /*min-height: 101%;*/
    /*background: url("http://images.cnblogs.com/cnblogs_com/douyaer/1091781/o_%e5%8d%9a%e5%ae%a21.jpg") top center no-repeat #70CB92;*/
/*}*/

/*.body2 {*/
    /*color: #000;*/
    /*font-family: Verdana, Arial, Helvetica, sans-serif;*/
    /*font-size: 13px;*/
    /*min-height: 101%;*/
    /*background: url(http://images.cnblogs.com/cnblogs_com/douyaer/1091781/o_%e5%8d%9a%e5%ae%a22.jpg) top center no-repeat #002901;*/
/*}*/

/*.body3 {*/
    /*color: #000;*/
    /*font-family: Verdana, Arial, Helvetica, sans-serif;*/
    /*font-size: 13px;*/
    /*min-height: 101%;*/
    /*background: url(http://images.cnblogs.com/cnblogs_com/douyaer/1091781/o_%e5%8d%9a%e5%ae%a23.jpg) top center no-repeat #3DACFE;*/
/*}*/

#profile_block {
    display: none
}

.c_b_p_desc {
    color: coral;
    text-indent: 0;
    font-size: 15px;
    font-weight: bold;
}

#main {
    min-width: 980px;
    text-align: left;
    clear: both;
    background-color: aliceblue;
}

#mainContent {
    min-height: 200px;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    float: left;
    width: 700px;
    background: #F0F8FF;
}

.postDesc {
    font-size: 15px;
    float: none;
    clear: both;
    text-align: right;
    padding-right: 5px;
    color: #A72121;
}

.postDesc a:link, .postDesc a:visited, .postDesc a:active {
    color: #AB2B2B;
}

#header {
    margin-top: 15em;
}
/*css高亮样式*/
/*
Date: 24 Fev 2015
Author: Pedro Oliveira <kanytu@gmail . com>
*/

.hljs {
    color: #a9b7c6;!important;
    background: #282b2e;!important;
    display: block;!important;
    overflow-x: auto;!important;
    padding: 0.5em;!important;
}

.hljs-number,
.hljs-literal,
.hljs-symbol,
.hljs-bullet {
    color: #6897BB;!important;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-deletion {
    color: #cc7832;!important;
}

.hljs-variable,
.hljs-template-variable,
.hljs-link {
    color: #629755;!important;
}

.hljs-comment,
.hljs-quote {
    color: #808080;!important;
}

.hljs-meta {
    color: #bbb529;!important;
}

.hljs-string,
.hljs-attribute,
.hljs-addition {
    color: #6A8759;!important;
}

.hljs-section,
.hljs-title,
.hljs-type {
    color: #ffc66d;!important;
}

.hljs-name,
.hljs-selector-id,
.hljs-selector-class {
    color: #e8bf6a;!important;
}

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

.hljs-strong {
    font-weight: bold;!important;
}
爱编程的douyaer的主页 爱编程的douyaer | 初学一级 | 园豆:188
提问于:2017-10-09 16:20
< >
分享
所有回答(3)
0

你把你的css 代码写在 页面定制CSS代码模块,把你的引用css和js 写在 页首HTML代码模块 试试看

BUTTERAPPLE | 园豆:3190 (老鸟四级) | 2017-10-09 16:39

css 代码都写在代码模块了,干嘛还要引用css,我把其他的css和高亮分开,把高亮直接粘在页面定制CSS代码模块,在引一下js试试

支持(0) 反对(0) 爱编程的douyaer | 园豆:188 (初学一级) | 2017-10-09 16:41

还是没有变化啊,我去看css样式感觉就没加载进来,我还是自己改一个算了 不用他们插件了

支持(0) 反对(0) 爱编程的douyaer | 园豆:188 (初学一级) | 2017-10-09 16:48
0

要默认用markdown编辑器
博客园中实现代码高亮

ycyzharry | 园豆:25651 (高人七级) | 2018-12-03 16:41
0
DuKe渡客 | 园豆:386 (菜鸟二级) | 2021-09-18 17:37
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册