【发布时间】:2010-12-07 20:56:09
【问题描述】:
为什么浏览器不滚动到锚点?
网址:http://localhost:8080/index.html#myAnchor3
this.anchor1.setName("myAnchor1");
this.add(this.anchor1);
this.anchor2.setName("myAnchor2");
this.add(this.anchor2);
this.anchor3.setName("myAnchor3");
this.add(this.anchor3);
是不是因为锚点是在页面加载完成后创建的,所以浏览器在尝试滚动到它时看不到锚点?
【问题讨论】: