W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <head> <style type="text/css"> input { position:absolute; } </style> <script type="text/javascript"> function setTopEdge() { document.getElementById("b1").style.top="100px"; } </script> </head> <body> <input type="button" id="b1" onclick="setTopEdge()" value="Set top edge to 100 px" /> </body> </html>