Home > Article > Web Front-end > What is the difference between these two attribute selectors?_html/css_WEB-ITnose
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?
selector[attr~= "man"] Opposite words.
selector[attr*="man"] includes
< input name="letterman2">
independent
a value containing a given word, delimited by spaces