hoythan
V2EX  ›  科技

浏览器的默认样式是什么?

  •  
  •   hoythan · Mar 17, 2017 · 1501 views
    This topic created in 3355 days ago, the information mentioned may be changed or developed.

    采集的功能可能需要某个 div 内的样式不受父级或以上样式影响,又不能通过改变父级 class 实现,因为父级是什么我也不知道.

    所以我的想法是给采集过来的内容加一个 div, 再给 div 清理样式,用默认样式覆盖之类的?

    hxsf
        1
    hxsf  
       Mar 17, 2017
    所以以前很多富文本框都直接插一个 iframe ,然后里面 reset 一把 css
    hoythan
        2
    hoythan  
    OP
       Mar 17, 2017
    @hxsf 但是内容网站用这个影响收录
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   825 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 21:30 · PVG 05:30 · LAX 14:30 · JFK 17:30
    ♥ Do have faith in what you're doing.