在页面上禁用(排除)一个div的引导程序 [英] Disable (exclude) bootstrap for one div on a page
问题描述
我有一个应用程序,可以提取自定义的旧电子邮件并将其显示在DOM的页面上.我想从引导CSS排除包含此HTML电子邮件的div.像这样:
I have an application that pulls custom old emails and displays them on a page in DOM. I want to exclude a div that contains this HTML email from bootstrap css. Something like this:
<div class="email_container">
<!-- bootstrap CSS shouldn't apply here-->
<div class="email">
<!-- neither here-->
</div>
</div>
有没有办法做到这一点?我做了一些研究,看到人们谈论LESS和SASS来解决这个问题,但是如果没有他们,有办法做到这一点,因为我不想为此目的而在我的项目中包括LESS或SASS.
Is there a way this can be done? I did some research and saw people talking about LESS and SASS to solve this but is there a way to do this without them as I don't want to include LESS or SASS in my project just for this purpose.
推荐答案
我认为您应该使用该类来重置 email_container
下的所有CSS.在CSS中,它显示为 .reset-this *
,因此对于 .reset_this
下的元素将被重置,然后可以添加所需的内容.
I think you should use this class for reseting all the CSS under email_container
. In the CSS it says .reset-this *
so for the elements under .reset_this
will get reseted, then you can add what you want.
这不是我创建的,它来自链接重置CSS
This was not created by me, it was taken from the link resetting CSS