是否可以隐藏href标题? [英] Is it possible to hide href title?
本文介绍了是否可以隐藏href标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<a href="link.html" title="Titletext">
...是代码。
我需要使用 title
属性,因为 slimbox ,但是我想隐藏将鼠标悬停在链接上方时显示的标题文本。
I need to use the title
attribute because of slimbox, but I want to hide the title-text that shows up when hovering the mouse over the link.
任何想法?
推荐答案
假设您在a标记中使用图片代码,您只需为图片使用替代标题(即使是空格),并覆盖当您将鼠标悬停在链接上时,链接的标题。
Supposing you are using an image tag in the a tag, you can just use an alternative title for the image (even a space) and that will overwrite the title of the link when you hover over it.
这篇关于是否可以隐藏href标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文