0
我想要垂直居中一個浮動的div的垂直對齊,here is the JSFiddle一個浮動的div
.wrapper{
width:250px;
background-color:red;
}
#SmileImg{
height:100px;
width:auto;
}
.textwrapper{
float:right;
}
<div class="wrapper">
<img src="http://img.xcitefun.net/users/2010/02/147370,xcitefun-smile-4.png" id="SmileImg" />
<div class="textwrapper">
<p>Please Smile!</p>
</div>
</div>
我不知道如何把文字「請微笑」垂直居中。
希望有人能幫助我。請耐心等待我不是專家! 提前謝謝!
非常感謝! – Simo9192