代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport"
content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<title>$title</title>
<style>
body,pre{margin:0}
.clearfix:after{/*伪元素是行内元素 正常浏览器清除浮动方法*/
content: "";
display: block;
height: 0;
clear:both;
visibility: hidden;
}
pre {
position: relative;
margin-bottom: 24px;
border-radius: 3px;
/*background: #FFF;*/
overflow: hidden;
}
.fonts, code{
font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
font-size: .85em;
line-height: 1.4;
}
.line-no {
float:left;
padding: 1em 3px ;
border-right: 1px solid #C3CCD0;
text-align: right;
color: #AAA;
margin: 0;
}
.line-no li{
list-style: none;
}
</style>
<style>$style</style>
</head>
<body>
<pre class="clearfix"><code>$code</code></pre>
<script>$js</script>
</body>
<script>
if($lineNumber) {
$('pre code').each(function () {
$(this).addClass('has-numbering');
var lines = $(this).text().split('\n').length;
var $numbering = $('<ul/>').addClass('line-no fonts hljs').before(this);
for (var i = 1; i <= lines; i++) {
$numbering.append($('<li/>').text(i));
}
});
}
hljs.highlightAll();
</script>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。