div中id的链接无法在firefox中运行 [英] Link for id in div not working in firefox

查看:56
本文介绍了div中id的链接无法在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆