Home
Sign Up
Sign In
Can I use?
›
http://caniuse.com/
Less
›
http://lesscss.org
Cool Libraries
›
Bootstrap from Twitter
›
Jetstrap
Advertisement
V2EX
›
CSS
css 显示代码不换行怎么办?
makeitall
·
Oct 18, 2016
· 4033 views
This topic created in 3504 days ago, the information mentioned may be changed or developed.
人家的
我的
Supplement 1 ·
Oct 18, 2016
目测是加了这行代码之后变成这样子了
<script>
hljs.configure({useBR: true});
$('code').each(function(i, block) {
hljs.highlightBlock(block);
});
</script>
怎么解决?
Supplement 2 ·
Oct 18, 2016
OK ,已解决,解决办法:放弃这个代码,用另一种高亮的方法。
CSS
代码
显示
行
3 replies
•
2016-10-18 15:53:48 +08:00
1
BMW
Oct 18, 2016
<pre>
xxx
</pre>
2
makeitall
OP
Oct 18, 2016 via iPhone
@
BMW
有 pre<pre><code>代码在这里</code></code>
3
makeitall
OP
Oct 18, 2016
@
BMW
目测是加了这行代码之后变成这样子了
<script>
hljs.configure({useBR: true});
$('code').each(function(i, block) {
hljs.highlightBlock(block);
});
</script>
怎么解决?
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
2877 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 466ea39e · 46ms ·
UTC 06:46
·
PVG 14:46
·
LAX 23:46
·
JFK 02:46
♥ Do have faith in what you're doing.
❯