网页内页点击跳转顶部或底部的方法

我的一个页面内容太多,所以想在文章之处就加入一个点击移动到底部的链接。

方法如下:

用dw 8打开网页模板的  page.php  代码,在其中找到

<div id="entry">   从此开始,在第一个

</div> 结束标志后面加上如下代

<?php comments_template(); ?>  <!—– 这句话的意思是,使用留言板的模板 –>

<a name="down"></a>  <!—– 这句话意思是设置一个锚标记,以后在文章中好用,名字是“down”–>

从此开始,设置成功,以后写文章的时候,如果文章太长,可以在开都的地方给某些文字加上链接:如下示例

<a href="#down">这里输入你想的文字</a> 

      注意不要让其他标记打算了结束符!

版权所有© HzlzH | 本文采用 BY-NC-SA 进行授权
转载需注明 转自: 《网页内页点击跳转顶部或底部的方法

相关文章

{ Leave a Reply ? }

  1. Anonymous China Internet Explorer Windows

    :-o :-|

  2. Anonymous China Internet Explorer Windows

    :-D :)

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :) :( :!: 8-O 8)