<div class="left">
<a href="index.php">
<img class="logo" src="images/logo.png" alt="logo" width="100%" height="auto" />
</a>
<img class="certificates" src="images/certificates.png" alt="Certificates" />
</div>
.left {
background-image: url("../images/left_background.jpg");
background-repeat: repeat-x;
height: 600px;
width: 25%;
float: left;
margin-left: 6%;
}
.certificates {
position: relative;
margin-bottom: 5px;
}
在margin-bottom
不起作用。我希望圖像始終處於<div>
的底部。但是,當我設置margin_bottom: 5px
什麼都沒有發生。我應該在這裏做什麼?marginbottom不工作
你想要圖像總是在什麼底部? – Filip 2012-01-13 09:48:24
@ fish40:如果我的回答有助於解決您的問題,請將其標記爲已接受。 – Connum 2012-01-13 11:04:39