案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
4
<img id="compman" src="/img/eg_compman.gif" alt="Computerman" />
5
<p>Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.</p>
6
7
<script type="text/javascript">
8
document.getElementById("compman").align="right";
9
</script>
10
11
</body>
12
</html>
13