Div with external stylesheet?

后端 未结 8 1800
灰色年华
灰色年华 2020-12-10 13:19

I have been given an external stylesheet (.css file) that may not altered in any way whatsoever. However I need to apply this stylesheet to a single div and therefore the co

8条回答
  •  一向
    一向 (楼主)
    2020-12-10 14:17

    The IFRAME solution works like this:

    In your main HTML file, you'll have your DIV:

    Style that as you need it. The divcontent.html file should be a complete HTML file, including the content of the DIV tag, and a LINK using your external stylesheet:

    
        
            
        
        
            
        
    
    

提交回复
热议问题