css 标签格式

PatternMeaningFirst Defined in CSS Level
EAn element of type E1
E:linkan E element being the source anchor of a hyperlink of which the target is not yet visited (:link) or already visited1
E:activean E element during certain user actions1
E::first-linethe first formatted line of an E element1
E::first-letterthe first formatted letter of an E element1
E.warningan E element whose class is "warning" (the document language specifies how class is determined).1
E#myidan E element with ID equal to "myid".1
E Fan F element descendant of an E element1
*Any element2
E[foo]an E element with a "foo" attribute2
E[foo="bar"]an E element whose "foo" attribute value is exactly equal to "bar"2
E[foo~="bar"]an E element whose "foo" attribute value is a list of whitespace-separated values, one of which is exactly equal to "bar"2
E[foo|="en"]an E element whose "foo" attribute has a hyphen-separated list of values beginning (from the left) with "en"2
E:first-childan E element, first child of its parent2
E:lang(fr)an element of type E in language "fr" (the document language specifies how language is determined)2
E::beforegenerated content before an E element2
E::aftergenerated content after an E element2
E > Fan F element child of an E element2
E + Fan F element immediately preceded by an E element2
E[foo^="bar"]an E element whose "foo" attribute value begins exactly with the string "bar"3
E[foo$="bar"]an E element whose "foo" attribute value ends exactly with the string "bar"3
E[foo*="bar"]an E element whose "foo" attribute value contains the substring "bar"3
E:rootan E element, root of the document3
E:nth-child(n)an E element, the n-th child of its parent3
E:nth-last-child(n)an E element, the n-th child of its parent, counting from the last one3
E:nth-of-type(n)an E element, the n-th sibling of its type3
E:nth-last-of-type(n)an E element, the n-th sibling of its type, counting from the last one3
E:last-childan E element, last child of its parent3
E:first-of-typean E element, first sibling of its type3
E:last-of-typean E element, last sibling of its type3
E:only-childan E element, only child of its parent3
E:only-of-typean E element, only sibling of its type3
E:emptyan E element that has no children (including text nodes)3
E:targetan E element being the target of the referring URI3
E:enableda user interface element E which is enabled3
E:disableda user interface element E which is disabled3
E:checkeda user interface element E which is checked (for instance a radio-button or checkbox)3
E:not(s)an E element that does not match simple selector s3
E ~ Fan F element preceded by an E element3

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值