码迷,mamicode.com
首页 > Web开发 > 详细

html锚点定位

时间:2016-03-17 14:21:03      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:

a.aspx页面

 

 <a id="a_anchor_2" href="#a_anchor_2" name="a_anchor_2" runat="server"></a> 

上面这行代码类似于

<a name="a_anchor_2"></a>  //定位的地方


<a href="#a_anchor_2" > 点击定位</a>

后台调用:

Page.ClientScript.RegisterStartupScript(this.GetType(), "SetSite", "<script>document.getElementById(‘a_anchor_2‘).click();</script>");

html锚点定位

标签:

原文地址:http://www.cnblogs.com/kaiwanlin/p/5286986.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!