禁用CSS规则 [英] Disabling CSS rules
问题描述
有任何方法可以禁用CSS规则吗?
Is there any way to disable a CSS rule?
我问的是因为我使用Kendo UI,他们的规则非常全面,例如:
I ask because I am using Kendo UI, and their rules are very all-encompassing, eg:
.k-grid td
{
// styles
}
然而,如果我把我的表放在他们的表中,它会被类似的样式,所以它的影响太多,需要删除/更换。我不想手动覆盖规则,并随时更新任何kendo的更改。我不想每次更新kendo文件时都手动删除它。
However if I put my table inside their table it will be styled up similarly, so its affecting far too much and needs to be removed/replaced. I don't want to have to manually overwrite the rules and keep up to date with any of kendo's changes. I don't want to have to manually delete it every time I update kendo files either.
任何机会可以轻松修复吗?感谢
Any chance of an easy fix? Thanks
推荐答案
不幸的是,没有更好的方法来禁用一个CSS规则匹配的规则,除了重写一切该规则定义
Unfortunately there is no better way to disable a CSS rule for an element that is matched by that rule except by overwriting everything the rule defines.
这篇关于禁用CSS规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!