我引入了
<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; }
你把你的css 代码写在 页面定制CSS代码
模块,把你的引用css和js 写在 页首HTML代码
模块 试试看
css 代码都写在代码模块了,干嘛还要引用css,我把其他的css和高亮分开,把高亮直接粘在页面定制CSS代码模块,在引一下js试试
还是没有变化啊,我去看css样式感觉就没加载进来,我还是自己改一个算了 不用他们插件了