Home  >  Article  >  Web Front-end  >  这两个属性选择器之间,有什么区别呢?_html/css_WEB-ITnose

这两个属性选择器之间,有什么区别呢?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:07:491224browse

如下:
selector[attr~="word"]

selector[attr*="word"]
这两个属性选择器都是表示attr属性中包含"word"值的选择器,那么他们俩的区别是什么呢?


回复讨论(解决方案)






selector[attr~="man"]      对立的单词。

selector[attr*="man"]    包括


独立
a value containing a given word, delimited by spaces

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn