Home > Web Front-end > HTML Tutorial > CSS3 attribute selector_html/css_WEB-ITnose

CSS3 attribute selector_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:34:55
Original
1116 people have browsed it

1. Basic introduction

(1) [att*=val] attribute selector

If the attribute value of the attribute represented by att of the element contains The character specified by val, then the element uses this style

(2) [att^=val] attribute selector

If the starting character of the attribute value of the element represented by att is The character specified by val, then the element uses this style

(3) [att$=val] attribute selector

If the element uses the attribute represented by att If the ending character of the value is the character specified by val, the element uses this style

2. Example

CSS3 attribute selector

/div>
                

Hello!

                                                                 id= "man" type="radio"/>Male                                                                                                                           text" value="Name"/>                                                                                                                                                        html>

Related labels:
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