日期:2014-05-17  浏览次数:20657 次

property position does not exist in css Level1.
我用 TopStyle Pro3.12编写如下代码软件里面提示:
property position does not exist in css Level1.
property top does not exist in css Level1.
property left does not exist in css Level1.
 但是在浏览器中都是好使的,不知何故,特此发问!谢谢
CSS code

<html>
<head>
<title></title>
<style type="text/css">
#po{
    position:absolute;
   top:50px;
    left:200px;
}
</style>

</head>
<body>
<p id="po">绝对定位</p>
</body>
</html>




------解决方案--------------------
这个属于css验证问题,你采用的是css Level1,这个规范里面没有这些属性,所以提示错误,但是浏览器现在已经支持css Level3了,TopStyle Pro3.12这个工具已经过时了。或者配置的验证标准太低了,

css 验证可以通过这个工具
http://jigsaw.w3.org/css-validator/