这不是顶部属性的有效值 [英] This is not a valid value for top properties
本文介绍了这不是顶部属性的有效值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么错误给出了Validation(CSS 2.1):expression(this.offsetParent.scrollTop)
我的CS编码如下所示:
Why the error is giving Validation(CSS 2.1):expression(this.offsetParent.scrollTop)
my cs coading is given below
<style type="text/css">
.HeaderFreez
{
position:relative ;
top:expression(this.offsetParent.scrollTop);
z-index: 10;
}
</style>
推荐答案
有时在Visual Studio 2005的CSS编辑器中,expression(offsetParent.scrollTop)将被视为无效值,并将显示此无效值在错误列表中.
您可以通过工具->将Visual Studio 2005配置为不显示此错误.选项->文字编辑器-> CSS-> CSS特定->取消选中检测无效值" .
您还可以尝试将此CSS代码放入< style type ="text/css">标签在页面标题部分下.
我认为您正在使用VS 2005(如果有),这会有所帮助.
Sometimes In the CSS Editor of Visual Studio 2005, the expression(offsetParent.scrollTop) will be treated as a invalid value, and will show this invalid values in the Error List.
You can configure the Visual Studio 2005 not to show this error by Tools -> Options -> Text Editor -> CSS -> CSS Specific -> Uncheck "Detect invalid values".
You also can try to put this CSS code to the <style type="text/css"> tags under header section of your page.
I think you are using VS 2005 if yes ,this helps.
this.offsetParent.scrollTop
返回什么?
请确认.我坚信问题出在这行
returns?
please confirm that. I strongly believe that the issue is in this line
top:expression(this.offsetParent.scrollTop);
问候
塞巴斯蒂安
Regards
Sebastian
这篇关于这不是顶部属性的有效值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文