空href不显示为链接

时间:2014-12-11 00:58:09

标签: html href mouseover

我不是程序员,所以这可能非常混乱。也许有一个更简洁的方法来创建鼠标悬停弹出窗口?

我正在使用一个空的href来创建一个鼠标弹出窗口。我的问题是空的href没有显示为链接,所以没有迹象表明应该鼠标悬停。

(<a href=" " title="Infrastructure, comprising a society's ... , and science (symbolic and ideational relations)."></a><span title="Infrastructure, comprising a society's ... , and science (symbolic and ideational relations)."><i>'Infrastructural, Structural and Superstructural'</i></span>

我也尝试过:javascript:void(0); JavaScript的:;和#(一切都无济于事);我最终选择了斜体 - 但这不是真正的暗示。

3 个答案:

答案 0 :(得分:0)

If you just want the pop-over title, you can put that on any element,无需使用空(和非语义)a链接。

另外,考虑到您的a标记为空,将不会呈现任何内容,因此不会显示任何链接。

答案 1 :(得分:0)

如果我了解您正在尝试正确执行的操作,我认为您的代码应该在文本旁边。

<a href="#" title="Infrastructure, comprising a society's ... , and science (symbolic and ideational relations)."><span title="Infrastructure, comprising a society's ... , and science (symbolic and ideational relations)."><i>'Infrastructural, Structural and Superstructural'</i></span></a>

答案 2 :(得分:0)

您已接近 - 但您需要知道<a href='...'>打开代码并</a>关闭代码。这两者之间的文字是显示下划线的位。

<a href="#" title="Blah de blah blah">Blah</a>

...或

<span style="color:blue" title="The definition of the term">the term used</span>
相关问题