makeitall
V2EX  ›  CSS

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

  •  
  •   makeitall · Oct 18, 2016 · 4402 views
    This topic created in 3671 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
    BMW
    Oct 18, 2016
    1
    <pre>
    xxx
    </pre>
    makeitall
    makeitall
    OP
    Oct 18, 2016 via iPhone
    2
    @BMW 有 pre<pre><code>代码在这里</code></code>
    makeitall
    makeitall
    OP
    Oct 18, 2016
    3
    @BMW
    目测是加了这行代码之后变成这样子了
    <script>

    hljs.configure({useBR: true});

    $('code').each(function(i, block) {
    hljs.highlightBlock(block);
    });
    </script>
    怎么解决?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1815 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 06:33 · PVG 14:33 · LAX 22:33 · JFK 01:33
    ♥ Do have faith in what you're doing.