【发布时间】:2012-10-26 11:07:08
【问题描述】:
可能重复:
What’s the difference in the :not() selector between jQuery and CSS?
如何为 class 'ui-content' 编写 CSS 选择器。但它不应该是 id 'ui-container'?
我尝试在 CSS 中使用以下选择器。
.ui-content:not(#ui-container > .ui-content) {
//styles goes here
}
但它确实可以在 jquery 中像 $('.ui-content:not(#ui-container > .ui-content)') 一样工作,但在纯 CSS 中却不行。
如何更正这个 CSS 选择器?
是否所有使用 jquery 的选择器都不适用于纯 CSS 选择器?
【问题讨论】:
标签: jquery css jquery-selectors css-selectors