gpt4 book ai didi

html - 为什么在其中使用 标签时链接标题不显示

转载 作者:太空狗 更新时间:2023-10-29 16:07:31 25 4
gpt4 key购买 nike

代码

这是 HTML 代码:

<li>
<a href="./hacks/hacks.html" title="Break the rules with techniques, not malicious invasion into computer and destroy the computer network.">
<strong>HACKS</strong>
</a> -
<em>Break the rules with techniques, not malicious invasion into computer and destroy the computer network.</em>
</li>

问题

问题是当我将鼠标焦点放在链接上时,标题(用技术打破规则,而不是恶意入侵计算机并破坏计算机网络。)不会出现。当我删除 <strong></strong>HACKS 之间,它有效。 (IE 10)

截图

  • 屏幕截图 - 在没有 <strong></strong> 的情况下可在 IE 10 中使用Title works without strong [标题作品无强]
  • 屏幕截图 - 不适用于 IE 10 <strong><strong> Title doesn't work with strong

在我将浏览器更改为 Chrome 27 后,title 起作用了。

伙计们,有什么解释吗?

最佳答案

将强者移到 anchor 外怎么样:

<li>
<strong><a href="./hacks/hacks.html" title="Break the rules with techniques, not malicious invasion into computer and destroy the computer network.">
HACKS
</a></strong> -
<em>Break the rules with techniques, not malicious invasion into computer and destroy the computer network.</em>
</li>

在 IE7 上测试

关于html - 为什么在其中使用 <strong> 标签时链接标题不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17214242/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com