DevToolBox免费
博客

CSS 选择器测试器

免费在线 CSS 选择器测试工具。

Try: p,.intro,li:nth-child(2)
Test results will appear here...
Common CSS Selectors Reference
Basic Selectors
element - Element by tag
.class - By class name
#id - By ID
[attr] - By attribute
Combinators
A B - Descendant
A > B - Child
A + B - Adjacent sibling
A ~ B - General sibling
Pseudo-classes
:first-child
:last-child
:nth-child(n)
:not(selector)
Attribute Selectors
[attr=value] - Exact
[attr*=value] - Contains
[attr^=value] - Starts with
[attr$=value] - Ends with

CSS 选择器测试器

针对 HTML 标记测试 CSS 选择器。

𝕏 Twitterin LinkedIn

评价此工具

4.2 / 5 · 126 人评价

保持更新

获取每周开发技巧和新工具通知。

无垃圾邮件,随时退订。

Enjoy these free tools?

Buy Me a Coffee