javascript 自动转到命名锚记
时间:2024-04-29 13:44:46
1.自动转到命名记
<script laguage="javascript">
window.location.hash = "#bottom";
</script>
<a name="bottom">底部</a>
2.自动定位到指定高度
<script laguage="javascript">
<!--
//function scrollwin() {
//document.body.scrollTop
var scroll_y = parseInt(1000);
window.scrollBy(0, scroll_y);
//}
//-->
</script>
标签:javascript,命名锚记
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Go语言变量与基础数据类型详情
2023-08-30 03:13:16
python安装库的最详细方法(以安装pygame库为例)
2021-03-08 04:29:40
![](https://img.aspxhome.com/file/2023/0/85040_0s.png)
python全栈知识点总结
2021-05-20 01:55:24
简析SQL Server数据库用视图来处理复杂的数据查询关系
2024-01-14 00:35:50
![](https://img.aspxhome.com/file/2023/5/99975_0s.jpg)
使用Python下的XSLT API进行web开发的简单教程
2022-07-24 22:07:14
![](https://img.aspxhome.com/file/2023/1/66401_0s.jpg)
ASP关于SQL插入数据后获得当前ID
2010-01-24 19:55:00
Python语言实现SIFT算法
2022-12-30 17:58:14
![](https://img.aspxhome.com/file/2023/6/97626_0s.png)
FP-growth算法发现频繁项集——构建FP树
2022-04-26 16:22:52
![](https://img.aspxhome.com/file/2023/1/133541_0s.png)
python使用hdfs3模块对hdfs进行操作详解
2023-10-30 07:12:03
![](https://img.aspxhome.com/file/2023/7/81517_0s.jpg)
Python3 获取文件属性的方式(时间、大小等)
2022-05-06 09:13:41
![](https://img.aspxhome.com/file/2023/7/112787_0s.jpg)
Python实现贪吃蛇小游戏(单人模式)
2023-09-26 23:14:42
php判断正常访问和外部访问的示例
2024-05-11 09:45:46
JavaScript闭包与作用域链实例分析
2024-04-10 10:48:55
![](https://img.aspxhome.com/file/2023/7/136927_0s.png)
JAVA简单链接Oracle数据库 注册和登陆功能的实现代码
2024-01-23 13:15:12
MySQL pt-slave-restart工具的使用简介
2024-01-17 11:42:34
css+js实现部分区域高亮可编辑遮罩层
2024-02-25 08:49:23
![](https://img.aspxhome.com/file/2023/4/56474_0s.gif)
使用Django实现商城验证码模块的方法
2023-11-04 04:46:23
![](https://img.aspxhome.com/file/2023/0/67370_0s.png)
MySQL RC事务隔离的实现原理
2024-01-29 06:12:23
![](https://img.aspxhome.com/file/2023/6/128386_0s.png)
javascript设计模式交流(二) Prototype Pattern
2007-11-29 14:01:00
![](https://img.aspxhome.com/file/UploadPic/200711/29/2007112914633775s.gif)
有关wxpython pyqt内存占用问题分析
2022-11-02 11:37:14