我正在開發一個網站,我遇到了與三個不同部分的陰影底部的問題。我希望邊框在所有三個邊框中都顯示出來,但它只顯示在左側和右側。沒有在頂部或底部顯示框陰影
下面是該節的HTML:
<div class="three-cols-row">
<div class="three-cols-col three-cols">
<p style="text-align: center;"><img src="https://www.lytyx.com/subdomains/test/websites/mynaturerich.com/wp-content/uploads/2013/02/section01.jpg" alt="" /></p>
<p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. <a href="#">Read More</a></p>
</div>
<div class="three-cols-col three-cols">
<p style="text-align: center;"><img src="https://www.lytyx.com/subdomains/test/websites/mynaturerich.com/wp-content/uploads/2013/02/section02.jpg" alt="" /></p>
<p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. <a href="#">Read More</a></p>
</div>
<div class="three-cols-col three-cols">
<p style="text-align: center;"><img src="https://www.lytyx.com/subdomains/test/websites/mynaturerich.com/wp-content/uploads/2013/02/section03.jpg" alt="" /></p>
<p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. <a href="#">Read More</a></p>
</div>
</div>
<div class="clearboth"></div>
下面是該節的CSS:
.three-cols-col{ margin:0 16px 0 16px; overflow:hidden; float:left; display:inline; }
.three-cols-row { margin:0 auto; width:960px; overflow:hidden; }
.three-cols-row .three-cols-row { margin:0 -16px 0 -16px; width:auto; display:inline-block; }
.three-cols { width:248px; padding: 15px; background: #fff; -moz-box-shadow: 0 0 3px #d4d4d4;-webkit-box-shadow: 0 0 3px #d4d4d4; box-shadow: 0 0 3px #d4d4d4; }
究竟什麼是問題你問? (Stack Overflow遵循問答格式,在這種情況下,我不完全清楚問題部分。) – dgvid 2013-02-11 18:49:12
@aleshoug - 刪除您的網站的鏈接並不會讓它變得祕密;人們仍然可以通過查看編輯歷史來看到它。把相關的代碼放在問題上總是比較好,而且不要使用活動鏈接。 – KatieK 2013-02-11 20:53:27