作者bennylu (Benny)
看板Web_Design
标题Re: [问题] 如何得知讯窗元件里的资讯
时间Thu Aug 24 20:21:24 2006
※ 引述《terrybob (翔翔)》之铭言:
: <div id="LayerBull" class="Bulletin">....(asp程式所产生的表格)...</div>
: 因为表格有高度有宽度
: 我想知道…怎麽样才可以得知那个表格的高度?…
: 我在script下…
: alert(window.document.body.LayerBull.top);
: 或
: alert(window.document.body.Bulletin.top);
: 两个都没任何回应…= =
: 请教教我吧…> <
<script>
alert(document.getElementById('LayerBull').style.top);
</script>
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.132.7.82
1F:推 terrybob:谢谢,还特地回文给我…Q___Q~(感动) 08/24 23:16
2F:推 terrybob:呃…给原po…我试过,还是没反应呢…> <!怎麽办 08/25 09:11