验证(CSS 2.1):'behavior'不是已知的CSS属性名称

我正在使用any:hover脚本模仿IE6中的hover选择器。建议的用法是将其作为IE6行为附加到body元素。但是我的所有页面都使用XHTML 1.1,因此当我尝试发布我的网站时,VS2008中的CSS验证失败了。 有没有很好的方法来解决这个问题? 谢谢! 康斯坦丁 相关标记:
    <!--[if IE 6]>
    <style type="text/css">
    body
    {
        behavior: url("../js/csshover3.htc");
    }
    </style>
    <![endif]-->
    
已邀请:
你可以放
body
    {
        behavior: url("../js/csshover3.htc");
    }
在外部css
    <!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie6.css">
    <![endif]-->
编辑: 或者您可以禁用css错误 http://geekswithblogs.net/SoftwareDoneRight/archive/2008/03/17/quicktip-turn-off-css-validation-errors.aspx     

要回复问题请先登录注册