开发者

Why W3C CSS Validator showing parsing error on "Ends-with" Attribute Value Selector

开发者 https://www.devze.com 2022-12-31 14:56 出处:网络
Why W3C Validator showing parsing error on this. I selected CSS3 profile also from dropdown. a[href $=.xls]{background: transparent url(ms-excel-icon.gif) left top no-repeat;

Why W3C Validator showing parsing error on this. I selected CSS3 profile also from dropdown.

a[href $=.xls]{background: transparent url(ms-excel-icon.gif) left top no-repeat;
padding-left: 22px;display: block;h开发者_JAVA百科eight: 16px;}

alt text http://shup.com/Shup/347107/11042455758-My-Desktop.png


They have a nearly identical example up on the W3C site

a[href$=".html"]

with the only difference being that there's no white space between the attribute name and the constraint type and the constraint itself is in quotes.

0

精彩评论

暂无评论...
验证码 换一张
取 消