Re: [問題] 設定圖層的位置
<div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:9; left: 6px; top: 800px; background-color: #00FF00;
layer-background-color: #00FF00; border: 1px none #000000;">
<input type="button" name="Submit" value="按鈕1" onClick="Movetable();">
</div>
<script>
function Movetable()
{
m=document.getElementById('Layer1').style.top;
alert((m.replace('px','')+100) + 'px');
}
</script>
按鈕1按下去,出現…
800100px
@@訊息!....
--
習慣一個人在房間裡,安靜地享受書的內容…
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.211.4.196
推
08/25 13:51, , 1F
08/25 13:51, 1F
→
08/25 13:52, , 2F
08/25 13:52, 2F
推
08/25 13:59, , 3F
08/25 13:59, 3F
→
08/25 14:00, , 4F
08/25 14:00, 4F
討論串 (同標題文章)
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章