在html中如何通过标签<a></a>直接跳到指定的位置

<body>
<a href="#n1">one</a>
<br />
<a href="#n2">two</a>
<br />
<a href="#n3">three</a>
<br />
<a href="#n4">four</a>
<br />
<a href="#n5">five</a>
<br />

<br />

<div id="n1"><img src="image/1_111116160331_1.jpg" /></div>
<div id="n2"><img src="image/1_111116160331_1.jpg" /></div>
<div id="n3"><img src="image/1_111116160331_1.jpg" /></div>
<div id="n4"><img src="image/1_111116160331_1.jpg" /></div>
<div id="n5"><img src="image/1_111116160331_1.jpg" /></div>
</body>

<a href="#n1"> 
#      ---代表空连接,连接的是自己
#n1   ---跳到本页的n1位置,用法:<a id="n1"></a>
posted on 2012-09-07 16:03  douqiumiao  阅读(1317)  评论(0编辑  收藏  举报