【发布时间】:2016-03-14 05:52:26
【问题描述】:
基本上我有一个动态图像,顶部堆叠了另一个图像/“效果”。
那部分工作正常。
但是当我转到span:hover + div 组合图像顶部的用户选项区域时,它主要适用于悬停效果,但悬停的项目似乎在鼠标悬停时闪烁。
<!DOCTYPE html>
<html>
<head>
<style>
.stack {
position: absolute;
left: 5px;
top: 5px;
width: 100px;
height: 100px;
z-index: -2;
}
div {
width: 110px;
height: 110px;
align-items: center;
top: 5px;
display: none;
}
span:hover + div {
display: block;
}
</style>
</head>
<body>
<table border="0">
<tr>
<td class='#jail' style='position:relative'>
<span><img src='/{$ir['display_pic']}' class='stack'>
<img src='/overlay.png' class='stack'>
</span>
<div>
<center>
<a href='http://'>Option 1</a>
<br />
<a href='http://'>Option 2</a>
</center>
</div>
</td>
</tr>
</table>
</body>
</html>
【问题讨论】:
-
你想要一个逐渐显示的悬停效果而不是直接捕捉吗?
标签: html css image html-table