我需要我的圖像在中心,但它不是由於某種原因。
我的HTML代碼:我不知道爲什麼我的照片沒有漂浮到中心
<div class="face-img">
<img id="profile-img" src="http://host2post.com/server13/photos/jI7X5kXAIEk_4M~/1680x1050-lake-tahoe-california-desktop-wallpaper-background.jpg" />
</div>
我的CSS代碼:
.face-img{
display: inline-block;
}
#profile-img{
height: 200px;
width: 200px;
border-radius: 50%;
}
.face-img #profile-img{
float: center;
http://jsfiddle.net/BBaughn/e941djLg/
'float:center'不存在。 http://www.w3schools.com/css/css_float。asp – 2015-04-02 14:39:02