hoythan
V2EX  ›  科技

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

  •  
  •   hoythan · Mar 17, 2017 · 1611 views
    This topic created in 3415 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   ·   949 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 20:02 · PVG 04:02 · LAX 13:02 · JFK 16:02
    ♥ Do have faith in what you're doing.