2
我想将鼠标悬停在div上显示一些图标 - 否则应将其隐藏起来。仅在翻滚时显示图标
这可以使用纯CSS完成?或者我需要一些JavaScript?
谢谢!
即/
HTML:
<div id="text_entry">
<p>Some text here</p>
<span class="operations">
<a class="delete" href="">Delete</a> | <a class="edit" href="">Edit</a>
</span>
</div>
CSS:
.edit{
background: url('images/edit_icon.png') no-repeat;
}
.delete{
background: url('images/edit_icon.png') no-repeat;
}
.operations{
display: none;
}
完美 - 感谢! – Simon 2011-01-07 04:17:55