changwei
V2EX  ›  问与答

chrome 中 pre 里面的代码无法高亮显示是为什么

  •  
  •   changwei · Jun 5, 2017 · 1822 views
    This topic created in 3448 days ago, the information mentioned may be changed or developed.

    RT 如图,IE EDGE 也能高亮显示,就是 chrome 不可以,这是为什么?

    问题传送门 https://segmentfault.com/q/1010000009654946

    3 replies  •  2017-06-05 17:43:47 +08:00
    mokeyjay
    mokeyjay
    Jun 5, 2017❤️1
    1
    pre 本来就不支持代码高亮,高亮需要自己加前端组件

    而且你两个浏览器分别打开两个不同的页面,然后证明 Chrome 下 pre 无法高亮??
    jugelizi
    jugelizi
    Jun 5, 2017
    2
    ...这个 chrome 表示很为难啊
    imherer
    imherer
    Jun 5, 2017
    3
    chrome: 这锅我不背😒
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1011 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 19:26 · PVG 03:26 · LAX 11:26 · JFK 14:26
    ♥ Do have faith in what you're doing.