css3新的选择器 - yansj1997

WBOY
Release: 2016-05-20 13:48:51
Original
1026 people have browsed it

CSS3新的选择器

<span style="color: #800000;">ele[att^="val"] </span><span style="color: #008000;">/*</span><span style="color: #008000;">属性att的值以val开头的元素</span><span style="color: #008000;">*/</span><span style="color: #800000;">
ele[att$="val"] </span><span style="color: #008000;">/*</span><span style="color: #008000;">属性att的值以val结尾的元素</span><span style="color: #008000;">*/</span><span style="color: #800000;">
ele[att*="val"] </span><span style="color: #008000;">/*</span><span style="color: #008000;">属性att包含val字符串的元素</span><span style="color: #008000;">*/</span>
Copy after login

 

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