Is it possible to block the styles of all css in a Div on the page?

the base style of bootstrap is applied globally throughout the site.

embed a piece of content generated by a rich text editor in a div on the page that does not want to be affected by the base style of bootstrap .

is there any way to achieve this requirement?

Mar.18,2021

rewrite the div into a new style.


just rewrite a style for the div. Css styles with weights will overwrite


can only be rewritten or importent


in fact, there was a real solution to this problem a long time ago.: Shadow DOM

  

priority problem? Maybe I don't quite understand what you mean

Menu