【原创】增加了单独显示代码的功能
思良:但是显示时很卡,打算有发代码时手动输入算了。
效果如下:
<style type="text/css"> .containersky{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto} .colsky-md-8{position:relative;min-height:1px;padding-right:10px;padding-left:10px;float:left;width:66.66666667%} .containersky pre{ border:0; width:0; height:0; background:none;} .syntaxhighlighter {max-height: 271px;} </style> <link rel="stylesheet" type="text/css" href="/skin/skyzsyone/css/shCore.css"> <div class="containersky"> <div class="colsky-md-8"> <pre name="code" class="brush: html;"> 具体代码内容</pre></div></div> <script type="text/javascript" src="/skin/skyzsyone/js/XRegExp.js"></script> <script type="text/javascript" src="/skin/skyzsyone/js/shCore2.js"></script> <script type="text/javascript" src="/skin/skyzsyone/js/shBrushXml.js"></script> <script type="text/javascript"> SyntaxHighlighter.all() </script>