style content within an iframe

前端 未结 3 1550
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-06 22:47

I have to style something within an iframe.


 
   
 
 

        
3条回答
  •  青春惊慌失措
    2020-12-06 23:05

    There is a new HTML 5 feature called seamless iframe, which perhaps does what you want:

    [...] it indicates that the iframe element's browsing context is to be rendered in a manner that makes it appear to be part of the containing document [...]

    
    

    However, for now it has very poor browser support (Webkit only I think). So it's not a good solution for most use cases today. But perhaps it is for you or some readers of the future.

    Update: Browser support seems to be even worse today, so this isn't a solution today or in the near future.

提交回复
热议问题