主题:  关于层的嵌套?

mlb123

职务:普通成员
等级:1
金币:0.0
发贴:47
注册:2001/6/16 11:40:04
#12002/1/24 18:18:37
www.dansteinman.com/dynduo/examples/nesting3.html
中的属性在IE中为什么显示undefined??????



5D荣誉斑竹

职务:普通成员
等级:5
金币:10.0
发贴:3292
注册:2001/5/24 10:01:29
#22002/1/24 19:06:09
未定义?



onlyjava

职务:普通成员
等级:2
金币:1.0
发贴:281
注册:2001/10/20 23:16:21
#32002/1/24 20:14:19
parent1,child1,child2是外部变量吗?应该访问不到的。



mlb123

职务:普通成员
等级:1
金币:0.0
发贴:47
注册:2001/6/16 11:40:04
#42002/1/24 20:51:34
有人告诉我下面这段代码可以:







The Dynamic Duo - Nesting Demo 3














Check values:

parent1: left,
HREF="javascript:alert(parent1.ypos)">top
,
HREF="javascript:alert(parent1.style.visibility)">visibility


child1: left,
HREF="javascript:alert(child1.ypos)">top
,
HREF="javascript:alert(child1.style.visibility)">visibility


child2: left,
HREF="javascript:alert(child2.ypos)">top
,
HREF="javascript:alert(child2.style.visibility)">visibility