【问题标题】:Mouse over text - image shows on fixed position鼠标悬停在文本上 - 图像显示在固定位置
【发布时间】:2012-11-11 19:33:41
【问题描述】:

当有人将鼠标悬停在文本上时,我希望显示图像

示例:www.hiphopking.nl

我不知道它叫什么。有人知道我应该用谷歌搜索什么来获得类似的东西吗?

【问题讨论】:

标签: image text hover mouse mouseover


【解决方案1】:

您到底想达到什么目的?任务本身可以通过几行 jQuery 轻松完成,看看我刚刚为您创建的这个示例:

$(document).ready(function()
{
    $("#myText").hover(
      function () {
        $("#myImage").show();
      },
      function () {
        $("#myImage").hide();
      }
    );    
});​

在这里演示:http://jsfiddle.net/umn9F/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-02-18
    • 1970-01-01
    • 1970-01-01
    • 2017-07-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多