Home > Web Front-end > HTML Tutorial > 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
Release: 2016-06-24 12:07:49
Original
1305 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template