2

I'm making a mobile web page in jquery mobile, and I'm wondering why the html anchor tag [<a name="one"> as your anchor, and then <a href="#one">] works fine in iOS, but doesn't work on Android. Why not?

4

1 回答 1

0

尝试将 分配给id您要定位的元素(页面应滚动/跳转到的元素),并将链接设置href为 that id,如下所示:

<a href="#second">Link</a>
<div id="first">
    ...
</div>
<div id="second">
    ...
</div>
于 2012-09-30T02:04:17.903 回答