use*_*913 5 firefox internet-explorer
我在页面上有锚链接,可以将您从页面跳转到各个部分。例如:
<a href="#pointandshoot">Point and Shoot Cameras</a>
Run Code Online (Sandbox Code Playgroud)
然后再往下看页面:
<a name="pointandshoot"></a>
Run Code Online (Sandbox Code Playgroud)
页面上有几个不同的。
它们在 Mac 和 PC 上的 Chrome 和 Safari 中运行良好,但在 Mac 和 PC 上的 Firefox 或 PC 上的 IE (8) 中根本不起作用。他们在页面上跳了一小段距离,但没有跳到应有的位置。
任何帮助,将不胜感激。
在我今天遇到一个问题后,看起来没有内容的锚标记在某些版本的 IE 中不起作用,例如:
<a id="example"></a>
在里面放一些东西可以解决问题,例如:
<a id="example"> </a>
无论您使用name
还是id
用于锚点,行为都是相同的。
我没有用 Firefox 进行测试。
小智 -1
尝试像这样设置你的目的地锚点:
<a id="an_id">Description</a>
<a href="#an_id">Link Text</a>
Run Code Online (Sandbox Code Playgroud)
更多信息:http://www.w3schools.com/html/html_links.asp
归档时间: |
|
查看次数: |
8738 次 |
最近记录: |