posts - 2,  comments - 0,  trackbacks - 0
  2008年7月1日
style="cursor:hand;"
在IE中能正常显示成手;在firefox中却不能正常显示

如果改用 style="cursor:pointer;"
则在两个浏览器下都能正常显示
适用于IE6.0及以上版本以及FIREFOX,在IE5.0下不能显示成手
posted @ 2008-07-08 14:09 wilbur 阅读(14) | 评论 (0)编辑
在IE下,可以这样写
linkDiv.style.left=getPosition(obj).x;
linkDiv.style.top=getPosition(obj).y+obj.offsetHeight;


PS:getPosition()是得到一个HTML控件的绝对位置

但是这样在firefox下就不能正常显示

在firefox下应该这样写
linkDiv.style.left=getPosition(obj).x +"px";
linkDiv.style.top=getPosition(obj).y+obj.offsetHeight +"px";


貌似是因为firefox下是没有加单位的,需要自己主动去附加单位。
posted @ 2008-07-08 13:47 wilbur 阅读(33) | 评论 (0)编辑
申明一下,控件的自定义属性:
自己定义的控件的属性,且写在标签里的。例如:
<cc1:IntegerTextBox ID="IntegerTextBox1" runat="server" MaxValue="200" MinValue="100"></cc1:IntegerTextBox>
这个控件中有两个属性是我自己加上去的,MaxValue和MinValue

在IE中(IE6.0以上,以下的没有测试过),可以直接取,例如:
document.getElementById("IntegerTextBox1").MaxValue
document.getElementById("IntegerTextBox1").MinValue

但是在FireFox下取的方式:
document.getElementById("IntegerTextBox1").attributes["MaxValue"].value
document.getElementById("IntegerTextBox1").attributes["MinValue"].value


posted @ 2008-07-01 10:15 wilbur 阅读(30) | 评论 (0)编辑
<2008年7月>
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

与我联系

搜索

 

常用链接

留言簿

我参加的小组

我参与的团队

我的标签

随笔档案

最新评论

阅读排行榜

评论排行榜