Div with external stylesheet?

后端 未结 8 1814
灰色年华
灰色年华 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

    This will helps you a lot:

    http://css-tricks.com/saving-the-day-with-scoped-css/

    Applies only style to a certain delimited escope. Good luck!

    IMHO better than the iframe solution..

    related: Limit scope of external css to only a specific element?

提交回复
热议问题