案例: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 setBottomEdge()
11
{
12
document.getElementById("b1").style.bottom="100px";
13
}
14
</script>
15
16
</head>
17
<body>
18
19
<input type="button" id="b1" onclick="setBottomEdge()" value="Set bottom edge to 100 px" />
20
21
</body>
22
</html>
23