如何让button位于窗口的底部?
?
------解决方案-------------------- <html>
<body>
<button style= "position:relative; "id= "btn1 "> 最底部 </button>
</body>
<script>
document.getElementById( "btn1 ").style.top=document.body.clientHeight-2*document.getElementById( "btn1 ").offsetHeight;
</script>
</html>