Heim >Web-Frontend >HTML-Tutorial >CSS3的[att=val]选择器_html/css_WEB-ITnose
1、实例源码
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>CSS3的[att=val]选择器</title><style type="text/css"> [id=div_border]{ background-color:#C00; width:110px; font-family:微软雅黑; font-size:18px; font-size-adjust:!important; font-stretch:expanded; font-style:oblique; font-variant:inherit; font-weight:bolder; }</style> <div id="div_border"> <ol> <li>星期一</li> <li>星期二</li> <li>星期三</li> <li>星期四</li> <li>星期五</li> <li>星期六</li> <li>星期日</li> </ol> </div>
3、说明
[att=val],att代表属性,val代表属性值