本来是在看阮大神写的ajax教程,突然发现点击目录文字会跳转到相对应的文本内容,于是乎激发了我的兴趣。

这个究竟怎么做的,刚开始看的时候一知半解,找度娘就是:“点击跳转到页面指定位置”,找了下,原来专业术语叫:锚点。

度娘真是个博大精深的地方,有着多种的方法可以使用。

最简单的一种:

设置a标签的锚点就行啦,但是有个确定链接会更改,不利于刷新

<div class="skip" id="skip">
<h2>目录</h2>
<ul>
<li>
<a href="#toc0" class="aaa">点击文字跳转</a>
<!--herf的值一定要带#号,并且要和相对应要跳转的值一致-->
</li>
</ul>
<div class="chapter" style="margin-top: 850px;">
<a name="toc0" class="aaa1">文字跳转到这里</a>
<!--这里的a标签可以用name也可以用id-->
<p>心情假心情假心情假心情假心情假心情假心情假心情假心情假心情假心情假心情假心情假
心情假心情假心情假心情假心情假心情假心情假心情假心情假心情假心情假心情假</p>
</div>
</div>

第二种方法是根据animate的方法来移动

animate(params, [duration], [easing], [callback])

创建自定义动画,注意:所有指定的属性必须用骆驼形式,比如用marginLeft代替margin-left.

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAr0AAAFMCAIAAABJYJOuAAAgAElEQVR4nO2d3Yslx3mH/T/1zSAyqwUZy7qw2HjP4NEuMpFsnAULL7PuCRklWsSGIBx5ZHZOhAY5hN0sgclAMmkZaUBY9h6iLLssimiNFhPOxbkQE4SkCx2EsMAXJxfdXV0fb1VXn++ZeX48iJ3+qK6qrq769VvVR98aIYQQQgjF6VuLzgBCCCGETozwDQghhBCKFb4BIYQQQrH61uu/+QMAAABADPgGAAAAiAXfAAAAALHgGwAAACAWfAMAAADEgm8AAACAWPANAAAAEAu+AQAAAGLBNwAAAEAs+AYAAACIBd8AAAAAsYR8wzuf/mk0+tPg4R9e/80Xn49Gn/fNAx5+9fWXX7z+mz+83v/j6Juv3in+8eUX5YnFLgAAADhFeHxD/4+j0ejrTz+xtpT+oOSTwTd/GjxUvuGLz0uTUW1fdNkAAABguri+4ZPBN8H/E5YeSHj41eefflL4hg8+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ghhE6eltI3qMV9ZjjdWSpYT2TELlgYjexvB4VclEm7U/vlxvJnC8w5EGldZLCg1YYsdQ8vEtU/a2zhG3zldmuuZdXplqFa46qv2JRKghBC6HRp/r6h2zBWSQOPNWtRKD4url6aM/fXk+1UdYcgDf7WxIVKT4436GsuzJUS5Ym+1YR2Tt2ZFCFd+zhnkiFQxR6Z5kkI2rjTGsxXIITQKRb/H22EEEIIxQrfgBBCCKFY4RsQQgghFCt8A0IIIYRihW9ACCGEUKzwDQghhBCKFb4BIYQQQrHCNyCEEEIoVvgGhBBCCMUK34AQQgihWOEbEEIIIRSrb73+mz8AAAAAxIBvAAAAgFjwDQAAABALvgEAAABiwTcAAABALP8P7C7bRbZBPDYAAAAASUVORK5CYII=" alt="" />

例子:

// 在一个动画中同时应用三种类型的效果
$("#go").click(function(){
$("#block").animate({
width: "90%",
height: "100%",
fontSize: "10em", //驼峰
borderWidth:
}, );
});

将上面的html中的a标签去掉#toc0

js代码

$(".aaa").click(function () {
$('html,body').animate({
scrollTop:$(".aaa1").offset().top},{duration:,easing:'swing'});
return false;
})

以上总结的两种是常用且兼容比较好的,较为简单的

也可参考复杂的案例

http://www.jb51.net/article/96574.htm

http://bbs.csdn.net/topics/390960199?page=1

html锚点 点击跳转到页面指定位置的更多相关文章

  1. HTML实现跳转到页面指定位置

    <a href="#page1">跳转到页面1</a> <a href="#page2">跳转到页面2</a> ...

  2. jQuery跳转到页面指定位置

    @参考博客 var t = $("#id").offset().top;// 获取需要跳转到标签的top值 //$(window).scrollTop(t);// 跳转到指定位置 ...

  3. 通过href简单实现单击a链接跳转到页面指定位置

    在页面中点击a标签后,要使其跳到页面里面相应的地方,方法很简单,就是在a标签里面href中的内容和你要跳到这个区域的id同名即可,例如: <a href="#ppp" tar ...

  4. 锚点定位,jquery定位到页面指定位置

    jquery锚点定位 $('body,html').animate({scrollTop: $('#ter1').offset().top}, 500);#ter1是你要定位的id对象,500是0.5 ...

  5. html js点击按钮滚动跳转定位到页面指定位置(DIV)的方法代码

    一:通过html锚点实现滚动定位到页面指定位置(DIV):    如果我们要点击实现跳转的地方是一个html锚点,也就是点击一个A标签超链接实现跳转,可以把A标签的href属性直接指向跳转指定位置的d ...

  6. html页面标记 点击目录跳转到页面相应位置 简易回到顶部

    html页面标记 点击目录跳转到页面相应位置 简易回到顶部  参考博客:

  7. 点击a标签 跳到当前页面指定div

    给标签div设一个id值 <div id="aa"><div> a标签抓取id值,点击跳过去 <a href="#aa">& ...

  8. 一个项目中既有移动端,同时也有PC端的代码,并且 他们的代码分开写的,那么如何实现在手机跳转手机页面,pc点击跳转pc页面

    将以下代码放入pc首页即可 <script type="text/javascript"> function mobile_device_detect(url) { v ...

  9. .net web 点击链接在页面指定位置显示DIV的问题

    做了一个网页,放了两个DataList ,一个显示科室,一个显示科室中的人员,由于科室太多,一屏显示不全,为了在页面刷新时记住上次浏览位置,所以给页面加了MaintainScrollPositionO ...

随机推荐

  1. TypeScript入门-泛型

    泛型 要创建一个可重用的组件,其中的数据类型就必须要兼容很多的类型,那么如何兼容呢,TypeScript提供了一个很好的方法:泛型 Hello World 要兼容多种数据格式,可能会有人想到any,即 ...

  2. scala读取jar包外配置文件的方式

    在scala的开发过程中,经常会修改程序的参数,将这些参数放到配置文件中避免了重复编译,打包的过程 这里给出读取配置文件的三种方式 方式一: 这是最常见的读取配置文件方式 val postgprop ...

  3. IOS打包相关问题

    使用了AFNetworking框架,模拟器和真机运行都不报错,但是提交商店报错Unsupported Architecture. Your executable contains unsupporte ...

  4. 【exp/imp】将US7ASCII字符集的dmp文件导入到ZHS16GBK字符集的数据库中

    [exp/imp]将US7ASCII字符集的dmp文件导入到ZHS16GBK字符集的数据库中 1.1  BLOG文档结构图 1.2  前言部分 1.2.1  导读和注意事项 各位技术爱好者,看完本文后 ...

  5. 学习笔记:javascript内置对象:字符串对象

    1.字符串的创建   var str = "Hello Microsoft!";   2.字符串属性   constructor  返回创建字符串属性的函数   length    ...

  6. InputStream类详解

    InputStream这个抽象类是所有基于字节的输入流的超类,抽象了Java的字节输入模型.在这个类中定义了一些基本的方法.看一下类的定义: public abstract class InputSt ...

  7. 学习MVC之租房网站(十)-预约和跟单

    在上一篇<学习MVC之租房网站(九)-房源显示和搜索>完成了房源的显示.检索,然后是用户的预约看房,以及后台操作员对预约看房的跟单操作. 预约看房仅有将预约信息保存到对应表的操作,预约表有 ...

  8. 区块链入门(2):搭建以太坊私有链(private network of ethereum),以及挖矿的操作..

    在做一些测试工作的时候, 为了方便控制以及更快的进入真正的测试工作,可能需要搭建一个私有的以太坊网络. 而以太坊节点之间能够互相链接需要满足1)相同的协议版本2)相同的networkid,所以搭建私有 ...

  9. 深入理解Struts2----数据校验

    在表现层的数据处理方面主要分为两种类型,一种是类型转换,这点我们上篇已经简单介绍过,另外一种则是我们本篇文章将要介绍的:数据校验.对于我们的web应用,我们经常需要和用户进行交互收集用户信息,那么无论 ...

  10. 18、面向对象基本原则及UML类图简介

    18.1.面向对象基本原则 18.1.1.面向抽象原则 抽象类特点: a.抽象类中可以有abstract方法,也可以有非abstract方法. b.抽象类不能用new运算符创建对象. c.如果一个非抽 ...