Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须使用 ckditor 从管理员端添加内容,并且我想在前端显示相同的内容显示。
我的前端 CSS 将要更改,但我如何才能防止和删除仅一个 div 以及带有 ol、ul 和更多内容的 div 的所有 CSS。
使用 jQuery removeClass() 函数
$('#mydiv').removeClass('myClass1 myClass2')
其中 myClass1 和 myClass2 由 ckditor 生成
您不能使用 CSS 从元素中删除 CSS。相反,您必须使用更具体的 CSS 覆盖它。
例如
.class { background: red; }
被覆盖
.parent .class { background: none; }