开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜