A list of supported CSS selectors when invoking g(..)
2009-01-22 14:08
211 查看
A list of supported CSS selectors when invoking g(..)
At it's most basic, Gimme is a utility for retrieving lots of elementsquickly and then acting upon all of them at once. This is done through
a call to the g(..) function.
The g(..) function takes one
parameter: a string formatted like a CSS selector which indicates which
elements you want Gimme to retrieve for you.
The following is a list of currently support CSS selectors (more to come);
*(univeral selector) matches any element
E matches ny E element (e.g. an element of type E)
E F matches any F element that is a descendant of an E element
E > F matches any F element that is a direct child of an E element
E + F matches any F element immediately preceded by an E element
E ~ F matches any F element that is a following sibling of an E element
E[foo] matches any E element that has the attribute foo (regardless of its value)
E[foo="warning"] matches any E element whose foo attribute is exactly "warning"
E[foo^="war"] matches any E element whose foo attribute starts with "war"
E[foo$="ing"] matches any E element whose foo attribute ends with "ing"
E[lang|="en"] matches any E element whose lang attribute has a hyphen-separated list of values beginning (from the left) with "en"
E.warning matches any E element that has the class "warning" applied to it
E.warning.severe matches any E element that has both classes "warning" and "severe" applied to it
#id matches any element whose id attribute is exactly id
E#id matches any E element whose id attribute is exactly id
E:first-child matches an E element, first child of its parent
E:last-child matches an E element, last child of its parent
E:nth-child(n) an E element, the n-th child of its parent
TODO:
E[attr|val]E:enabled
E:disabled
E:checked
E:target
E:not
E:root
E:empty
相关文章推荐
- How to delete a large number of data in SharePoint for List when refreshing data?
- Warning: css type selectors are not supported in components 'sparks.component.Label'
- add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
- openstack kilo compute更新后报错IncompatibleObjectVersion: Version 1.2 of PciDeviceList is not supported
- 极光推送编译遇到you still need to add "remote-notification" to the list of your supported UIBackgroundModes
- “Cannot read property 'classList' of null” when using classList.add
- [转]The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books
- Loading Data when the User Scrolls to the End of a List in Windows Phone 7
- You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgrou
- List of NANDs devices supported by TI RBLs
- TypeError: List of Tensors when single Tensor expected - when using const with tf.random_normal
- iOS推送警告but you still need to add "remote-notification" to the list of your supported UIBackgroundMod
- PHP - Manual手册 - Appendices附录 - List of Supported Protocols/Wrappers支持的协议/封装协议列表 - HTTP and HTTPS
- add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
- 1200057 - When creating or refreshing a Crystal Report from a BW query, the list of available SAP sy
- add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.(转载)
- Use #CSS attribute selectors to display links when <a> has no text value but the `href` has a link
- NT_iOS笔记—add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plis
- 转载:The Essential List of JavaScript, jQuery, HTML & CSS Books to Make You a Better Web Developer
- What's the effect of hashCode() & equals() when adding object to List/Set/Map