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

gitbook 渲染 pdf 的时候怎么让 code 全部渲染出来没有 scroll

  •  
  •   gouchaoer2 · Aug 24, 2020 · 2132 views
    This topic created in 2082 days ago, the information mentioned may be changed or developed.
    如图:

    很伤脑筋
    2 replies    2020-08-26 16:36:49 +08:00
    gouchaoer2
        1
    gouchaoer2  
    OP
       Aug 24, 2020
    pdf.css 中加了:

    ```
    .markdown-section pre>code{
    white-space: pre-wrap;
    }

    ```

    还是不行
    gouchaoer2
        2
    gouchaoer2  
    OP
       Aug 26, 2020
    顶一下,这个问题必须解决啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4088 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 10:21 · PVG 18:21 · LAX 03:21 · JFK 06:21
    ♥ Do have faith in what you're doing.