CSS属性选择器

 
[attribute]
包含指定属性
[attribute=value]
包含指定属性和值
[attribute~=value]
属性值中 
包含 value 这个词汇
比如 type="i love you" 包含love这个词汇
[attribute|=value]
属性值中 
第一个词汇 必须是 value 或者 value-xx
比如符合[type|=en]的有:
type="en",
type="en-xx",
type="en other",
type="en-xx other"
[attribute^=value]
属性值 以value字符开头 。
比如符合[type^=en]的有:
type="en",
type="enxx",
type="en-xx"都行。
[attribute|=value]不能选到type="enxx"。
[attribute$=value]
属性值 以value字符结尾
[attribute*=value]
属性值 包含value字符
posted @ 2013-12-26 18:39  凌晨风  阅读(184)  评论(0编辑  收藏  举报