【发布时间】:2014-05-14 21:02:56
【问题描述】:
当鼠标悬停图像时,我将如何输入Click to edit,我可以进行悬停,但悬停时无法插入文本。我在 jsfiddle 创建了我的作品,我必须使用 HTML 源代码,尤其是 div 类,否则我的设计将无法正常工作。
这是 HTML 源代码
<a href="#changepic" data-toggle="modal" data-backdrop="static">
<div class="round-pic2 thumbnail" style="background-image: url('http://asianwiki.com/images/a/a4/Andy-lau.jpg');">
</div>
</a>
这是 CSS 样式
.round-pic2 {
display: block;
width: 130px;
height: 130px;
margin: 0em auto;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
border-radius: 99em;
-webkit-border-radius: 99em;
-moz-border-radius: 99em;
border: 0px solid gray;
box-shadow: 0 3px 2px rgba(0, 0, 0, 0.3);
}
.round-pic2:hover {
opacity:0.5;
}
演示
更新工作版本
【问题讨论】: