【问题标题】:Why W3C CSS Validator showing parsing error on "Ends-with" Attribute Value Selector为什么 W3C CSS Validator 在“Ends-with”属性值选择器上显示解析错误
【发布时间】:2010-05-24 05:02:06
【问题描述】:

为什么 W3C 验证器会显示解析错误。我也从下拉列表中选择了 CSS3 配置文件。

a[href $=.xls]{background: transparent url(ms-excel-icon.gif) left top no-repeat;
padding-left: 22px;display: block;height: 16px;}

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

【问题讨论】:

    标签: css w3c-validation


    【解决方案1】:

    他们在 W3C 网站上有一个nearly identical example

    a[href$=".html"]
    

    唯一的区别是属性名称和约束类型之间没有空格,并且约束本身是用引号引起来的。

    【讨论】:

    • 使用此a[href$=.xls]{background: transparent url(ms-excel-icon.gif) left top no-repeat; padding-left: 22px;display: block;height: 16px;}后仍然显示错误
    • @metal-gear-solid:在那种情况下,我不知道,看起来他们在a[href$=".html"] 网站上有一个几乎相同的示例。也许试着把它放在引号里?
    • 请记住,W3C CSS 验证器与所有软件一样,偶尔会出现错误。 (不是说这是一个,但你应该知道:p)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多