V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
makeitall
V2EX  ›  CSS

css 显示代码不换行怎么办?

  •  
  •   makeitall · Oct 18, 2016 · 3980 views
    This topic created in 3478 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 ,已解决,解决办法:放弃这个代码,用另一种高亮的方法。
    3 replies    2016-10-18 15:53:48 +08:00
    BMW
        1
    BMW  
       Oct 18, 2016
    <pre>
    xxx
    </pre>
    makeitall
        2
    makeitall  
    OP
       Oct 18, 2016 via iPhone
    @BMW 有 pre<pre><code>代码在这里</code></code>
    makeitall
        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   ·   5647 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 08:23 · PVG 16:23 · LAX 01:23 · JFK 04:23
    ♥ Do have faith in what you're doing.