【问题标题】:How to make pop-up links over the picture?如何在图片上制作弹出链接?
【发布时间】:2015-01-30 17:26:15
【问题描述】:

请告诉我如何做出这样的决定:http://aqvatarius.com/themes/atlant_v1_6/html/pages-gallery.html。 我需要这样做,当您将鼠标悬停在图像上以弹出带有两个链接的块时,一个用于编辑另一张要删除的图片。以下是如何显示图像的示例:

<a href="http://placehold.it/400x400&text=Photo+2" title="Apple">
<img src="http://placehold.it/100x100&text=Thumbnail-2" alt="Apple" class="img-thumbnail">
</a>

这里是演示:http://jsfiddle.net/3su8Y/

【问题讨论】:

  • 我读了 4 遍问题,但仍然不清楚。
  • 当您将鼠标悬停在图片上时,我需要制作一个带有两个链接的弹出块。
  • 因此您希望在Hover 而不是click 上进行事件。只需使用onmouseover

标签: jquery css


【解决方案1】:

试试这个看看 jsfiddle:http://jsfiddle.net/3su8Y/7/

.row a {
    float: left;
    height: 100px;
    margin-right: 15px;
    overflow: hidden;
    position: relative;
    width: 100px;
}
.row a:hover ul{right:5px;}
.row a > ul {
    list-style: outside none none;
    margin: 0; transition: all 200ms ease 0s;
    overflow: hidden;
    padding: 0;
    position: absolute;
    right: -49px;
    top: 0;
    width: 48px;
}

【讨论】:

  • 一切正常,但我想删除和取消按钮是链接。如果我这些标签使链接无效。 ``` placehold.it/400x400&text=Photo+3"> placehold.it/100x100&text=Thumbnail-3" alt="Orange" class="img-thumbnail"> ```
猜你喜欢
  • 2011-11-03
  • 2016-06-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-01-16
  • 2013-06-20
相关资源
最近更新 更多