css regular match, fuzzy match

// class contains all the font-red label p
p [class ~ = "font- red"] {color: red;}

[abc ^ = "def"] Select abc attribute value "def" at the beginning of all elements
[abc $ = "def"] Select abc attribute value "def" at the end of all the elements
[abc * = "def"] selected abc attribute value contains all elements substring "def" in

//eg 

    //选择clsss属性值以 "search_box" 结尾的所有元素都将隐藏
    [class$="search_box"]{
        display:none;
    }

Guess you like

Origin www.cnblogs.com/qq917937712/p/11386923.html