Can the traditional css realize the privatization of the style?

the captured dom element is inserted into a html file of my project, and the style file css is also put into my project directory and introduced in the html file, but this css will affect my other styles, is there any solution? Except for using iframe.

Mar.06,2021

if the dom element to be filled in is your own decision, it is recommended to use style to write it. It's easier to solve this way. If you don't write it yourself and you can't change it, you'll have to rewrite your own css. Or add an extra class, to the outermost layer of your current page and prefix css with this class to increase your priority. Cover the outer style on the inside, but the effect is not very good.
if you use vue, you can scoped


wrapped with the class prefix, add an empty class, to the outermost layer of the crawled dom, and then put all the definitions of the style file after that class-as is the case with traditional html css.
such as angular framework is now supported. You can isolate styles between components as long as configuration parameters


or whether external css files and dom can be merged into inline styles


.

the outermost layer covers a tag and takes a custom attribute:


    <!-- stuff -->
</div>

< / div >

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb20aa-4815b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb20aa-4815b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?