解决方法@H_404_6@
斯塔诺回答了我的问题!
“…是的,按钮可以位于图像标签上方,例如:http://jsfiddle.net/ubWuX”
HTML:
<div id="img_container">
<img src="http://jsfiddle.net/img/initializing.png"/>
<button class="button"> click here </button>
</div>
CSS:
#img_container {
position:relative;
display:inline-block;
text-align:center;
border:1px solid red;
}
.button {
position:absolute;
bottom:10px;
right:10px;
width:100px;
height:30px;
}
“…是的,按钮可以位于图像标签上方,例如:http://jsfiddle.net/ubWuX”
HTML:
<div id="img_container"> <img src="http://jsfiddle.net/img/initializing.png"/> <button class="button"> click here </button> </div>
CSS:
#img_container { position:relative; display:inline-block; text-align:center; border:1px solid red; } .button { position:absolute; bottom:10px; right:10px; width:100px; height:30px; }