我正在嘗試創建一個帶有標題的框。我們使用CSS的引導程序[http://getbootstrap.com/]。盒子應該如下所示。它是響應式設計的一部分,並具有span9類。任何幫助是極大的讚賞。包含使用引導標題的框
這是我試圖達到相同的:
CSS和HTML
.container:before, .container:after { display:table; content:""; }
.container:after { clear:both; }
.container { width:500px; margin:0 auto; border:1px solid #fff;
box-shadow:0px 2px 7px #292929;
-moz-box-shadow: 0px 2px 7px #292929;
-webkit-box-shadow: 0px 2px 7px #292929; border-radius:10px;
-moz-border-radius:10px;
-webkit-border-radius:10px; background-color:#ffffff; }
.mainbody { height:250px; width:500px; border: solid #eee;
border-width:1px 0; }
.header, .footer { height: 40px; width:50px; border : 1px solid red;
padding: 5px; }
.footer { background-color: whiteSmoke;
-webkit-border-bottom-right-radius:5px;
-webkit-border-bottom-left-radius:5px;
-moz-border-radius-bottomright:5px;
-moz-border-radius-bottomleft:5px; border-bottom-right-radius:5px; border-bottom-left-radius:5px; }
<div class="header container">
Header
</div>
<div class="container">
<div class="mainbody">
main body
</div>
<div class="footer">
footer
</div>
</div>
感謝
此社區將幫助您克服difficutlies,而不是爲您的實際工作。 –
正在使用的引導程序的版本 – HTTP
@HTTP - 我正在使用版本Bootstrap v3.1.1。我也試圖找到相同的解決方案 – Anirban