Is there a fast way in CSS to remove all of the styles applied to an element? For example, say a tab menu of some sort:
相关标签: 2条回答 不知归路 2021-01-24 01:42 In CSS3, yes. You could use the negation pseudo-class: .outer:not(#d3) { foo:blee; etc etc } Too bad CSS3 support is a little lacking at the moment with most browsers... With CSS level less than 3, you're screwed. Sorry. 0 讨论(0) 发布评论: 提交评论 加载中... 刺人心 2021-01-24 02:04 No. Not feasibly possible. Just override it. 0 讨论(0) 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
In CSS3, yes. You could use the negation pseudo-class:
.outer:not(#d3) { foo:blee; etc etc }
Too bad CSS3 support is a little lacking at the moment with most browsers...
With CSS level less than 3, you're screwed. Sorry.
No. Not feasibly possible. Just override it.