What follows is a list of supported CSS Selector expressions.
- * any element
- E an element of type E
- E:root an E element, root of the document
- E:nth-child(n) an E element, the n-th child of its parent
- E:first-child an E element, first child of its parent
- E:last-child an E element, last child of its parent
- E:only-child an E element, only child of its parent
- E:empty an E element that has no children (including text nodes)
- E:enabled
- E:disabled a user interface element E which is enabled or disabled
- E:checked a user interface element E which is checked (for instance a radio-button or checkbox)
- E.warning an E element whose class is "warning"
- E#myid an E element with ID equal to "myid".
- E:not(s) an E element that does not match simple selector s
- E F an F element descendant of an E element
- E > F an F element child of an E element
- E + F an F element immediately preceded by an E element
- E ~ F an F element preceded by an E element
Supported, but different
All attribute selectors are written like their XPath counter-parts (in that all attributes should begin with an @ symbol).
- E[@foo] an E element with a "foo" attribute
- E[@foo=bar] an E element whose "foo" attribute value is exactly equal to "bar"
- E[@foo^=bar] an E element whose "foo" attribute value begins exactly with the string "bar"
- E[@foo$=bar] an E element whose "foo" attribute value ends exactly with the string "bar"
- E[@foo*=bar] an E element whose "foo" attribute value contains the substring "bar"
Not supported
jQuery only supports selectors that actually select DOM elements - everything else is ignored.
- E:link
- E:visited an E element being the source anchor of a hyperlink of which the target is not yet visited (:link) or already visited (:visited)
- E:active
- E:hover
- E:focus an E element during certain user actions
- E:target an E element being the target of the referring URI
- E::first-line the first formatted line of an E element
- E::first-letter the first formatted letter of an E element
- E::selection the portion of an E element that is currently selected/highlighted by the user
- E::before generated content before an E element
- E::after generated content after an E element
jQuery doesn't support the following selectors due to their lack of real-world usefulness:
- E:nth-last-child(n) an E element, the n-th child of its parent, counting from the last one
- E:nth-of-type(n) an E element, the n-th sibling of its type
- E:nth-last-of-type(n) an E element, the n-th sibling of its type, counting from the last one
- E:first-of-type an E element, first sibling of its type
- E:last-of-type an E element, last sibling of its type
- E:only-of-type an E element, only sibling of its type
- E:lang(fr) an element of type E in language "fr"
分享到:
相关推荐
jquery css
jQuery css3打开遮罩图片形状过渡动画效果
jquery css3实现动态选项卡菜单切换效果
jquery css3曲线特效图是一款基于jquery css3实现的交互式曲线图形插件。 jquery css3曲线特效图:
jquery css3进度条加载动画特效
jQuery css3右键菜单,K社游戏风格。旋转弹出收回菜单,有菜单弹出音效,弹出有遮罩层,支持移动端。(不兼容IE6,7,8)
一款简单漂亮的jQuery CSS3导航菜单下划线动画特效,鼠标点击导航菜单文字链接时,下划线线性流动动画效果。
jquery css3图片文字介绍鼠标滚动页面动画单页 jquery css3图片文字介绍鼠标滚动页面动画单页
jQuery CSS3漂亮的tooptip提示框动画特效
代码简介:jQuery CSS3彩色进度条动画特效是一款以百分比的形式显示进度条加载动画特效。
jquery css3页面弹出loading加载代码
jquery css3华丽滚动效果是一款jQuery Smoove插件结合CSS3实现的绚丽动画效果。
jQuery css3旅游网鼠标悬停图片文字动画效果 jQuery css3旅游网鼠标悬停图片文字动画效果
jQuery CSS3图片放大镜插件是一款jQuery基于css3属性制作鼠标悬停图片放大镜预览查看效果代码。
jquery css3带背景透明登录注册表单提交代码
jQuery css3猎豹浏览器宽屏banner焦点图切换代码
jquery css 跑步效果 jquery css 跑步效果 jquery css 跑步效果 jquery css 跑步效果 jquery css 跑步效果
jquery css3文字动画特效点击切换文字动态效果
jQuery CSS3数字滚动统计代码是一款网页刷新数字滚动,计数器数量统计代码。
jQuery基于css3属性制作酷炫的鼠标移动控制人物彩虹笔绘画交互特效。