页面中的两种锚标记定位方式——a和location.hash
来源:互联网 发布:霹雳布袋戏软件 编辑:程序博客网 时间:2024/05/08 18:42
<a href="#test">点击锚</a>...<a name="test">到标记</a>这是最简单的锚标记的方式,在网页中可能由于篇幅过大所以很长,那么想回到某个位置就可以用这种方式定位。还有种是用javascript
<script>function move(){location.hash="#there";}</script><div onclick="move()">GO</div>...<div id="there">there</div>
利用location.hash="#there";定位,不过明显没有a来的方便,不知道这个hash还有没有其他的用处
- 页面中的两种锚标记定位方式——a和location.hash
- 锚(定位标记)—a
- a标记中的href和onclick
- 巧用location.hash保存页面状态
- Android GPS —— Location定位
- window.location.hash解析(URL中的?#)
- location.hash
- location hash(#)
- location.hash
- window.location.href和window.location.hash的区别
- location对象的href和hash属性
- 正则匹配div中的a标记的href 和content
- ASP.NET页面内跳转无刷新-- window.location.hash
- Android 位置服务——用户定位User Location
- javascript中的window.location和document.location
- location 定位
- Core Location定位和MapKit视图使用
- action提交和location.href定位
- Eclipse 重装 ADT 问题~重装系统有感~
- Explaining the PeopleCode @ operator
- ejb 学习:sql 语句的输入
- Swing总结
- Running Dynamic SQL with SQLEXEC
- 页面中的两种锚标记定位方式——a和location.hash
- 关于CSplitterWnd拆分窗口的隐藏与显示问题
- 基于Extent 的文件存储(fiemap)
- WDS与MESH区别
- WORD上次启动失败,以安全模式启动”的解决方法
- The only Peoplecode events you should be using
- Using Record Objects to perform inserts and updates
- C# 获取颜色集合(系统所有的颜色)
- 简单JQ_AJAX表单提交