案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<style type="text/css">
4
input
5
{
6
position:absolute;
7
}
8
</style>
9
<script type="text/javascript">
10
function setLeftEdge()
11
{
12
document.getElementById("b1").style.left="100px";
13
}
14
</script>
15
</head>
16
<body>
17
18
<input type="button" id="b1" onclick="setLeftEdge()" value="Set left edge to 100 px" />
19
20
</body>
21
</html>
22