Div with external stylesheet?

后端 未结 8 1801
灰色年华
灰色年华 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 13:58

    I suggest you can leave the external style sheet as it is and create an internal style sheet with the classes that you want from the external stylesheet to affect your single div and just rename it and apply those renamed classes to the div. The renaming is because the attributes of those classes may affect elements already existing on the page from external stylesheets.

    
    

    Hope this helps.

提交回复
热议问题