Home  >  Article  >  Web Front-end  >  What is the difference between these two attribute selectors?_html/css_WEB-ITnose

What is the difference between these two attribute selectors?_html/css_WEB-ITnose

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

is as follows:
selector[attr~="word"]
and
selector[attr*="word"]
Both attribute selectors indicate that the attr attribute contains " word" value selector, so what is the difference between them?


Reply to discussion (solution)






selector[attr~= "man"] Opposite words.

selector[attr*="man"] includes


< input name="letterman2">

independent
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