div中id的链接无法在firefox中运行 [英] Link for id in div not working in firefox
问题描述
div中的id链接在Firefox中不起作用,适用于其他浏览器。在Firefox中停在其他部分。
链接用于另一个页面到另一个页面部分。
ex:
在页面product.html中,我提到了:< br $> b $ b
< div class =id =exp>
content
< / div> ;
以下代码是包含许多部分的另一页
< a href =product。 html#exp> link< / a>
我尝试过:
提到了一个部分为id的div
在另一个锚标签页面中定义。
使用上面的代码
link for id in div not working in firefox, works in other browsers. In firefox stops in other section.
the link is for another page to another page section.
ex:
In the page product.html, i have mentioned as:
<div class="" id="exp">
content
</div>
The below code is another page with many sections
<a href="product.html#exp">link</a>
What I have tried:
mentioned div with id for a section
defined in another page in anchor tag.
used the above code
推荐答案
使用名称为锚点
Use an anchor with a name
<div class="" id="exp"><a name="exp"></a>
这篇关于div中id的链接无法在firefox中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!