Re: [問題] 如何得知訊窗元件裡的資訊
※ 引述《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
推
08/24 23:16, , 1F
08/24 23:16, 1F
推
08/25 09:11, , 2F
08/25 09:11, 2F
討論串 (同標題文章)