所以我試圖創建一個Twitter的引導和Ryan既成事實的粘頁腳佈局創建具有引導
<body>
<div class="wrapper">
<div class="header">
</div>
<div class="user-panel">
<h1>Side Panel</h1>
</div>
<div class="content">
Hello World!
</div>
<div class="push"></div>
</div>
<div class="footer">
</div>
</body>
我似乎無法擴大用戶面板和含量爲100%的高度,嘗試了這些,但他們不工作:
http://www.sitepoint.com/forums/showthread.php?868712-100-height-sidebar-background
http://fiddle.jshell.net/teresko/UG8Rk/show/我需要的邊框圓潤所以...
這裏的CSS ...
/* Header */ .header { height: 40px; margin-top: 0px; border: 1px solid #999; -webkit-border-radius: 0px 0px 5px 5px; -moz-border-radius: 0px 0px 5px 5px; border-radius: 0px 0px 5px 5px; -webkit-box-shadow: #666 0px 1px 1px; -moz-box-shadow: #666 0px 1px 1px; box-shadow: #666 0px 1px 1px; background: #F3F3F1; background: -webkit-gradient(linear, 0 0, 0 bottom, from(#F3F3F1), to(#2B2B2B)); background: -webkit-linear-gradient(#F3F3F1, #2B2B2B); background: -moz-linear-gradient(#F3F3F1, #2B2B2B); background: -ms-linear-gradient(#F3F3F1, #2B2B2B); background: -o-linear-gradient(#F3F3F1, #2B2B2B); background: linear-gradient(#F3F3F1, #2B2B2B); -pie-background: linear-gradient(#F3F3F1, #2B2B2B); behavior: url(/PIE.htc); } /* End of Header */ /* Footer */ .footer { margin-top: 12px; background-color: #000; margin-bottom: 0px; margin-right: 20px; margin-left: 20px; clear: both; height: 40px; border: 1px solid #999; -webkit-border-radius: 5px 5px 0px 0px; -moz-border-radius: 5px 5px 0px 0px; border-radius: 5px 5px 0px 0px; -webkit-box-shadow: #666 0px 1px 1px; -moz-box-shadow: #666 0px 1px 1px; box-shadow: #666 0px 1px 1px; background: #F3F3F1; background: -webkit-gradient(linear, 0 0, 0 bottom, from(#F3F3F1), to(#2B2B2B)); background: -webkit-linear-gradient(#F3F3F1, #2B2B2B); background: -moz-linear-gradient(#F3F3F1, #2B2B2B); background: -ms-linear-gradient(#F3F3F1, #2B2B2B); background: -o-linear-gradient(#F3F3F1, #2B2B2B); background: linear-gradient(#F3F3F1, #2B2B2B); -pie-background: linear-gradient(#F3F3F1, #2B2B2B); behavior: url(/PIE.htc); } /* End of Footer */ /* Sticky footer by Ryan Fait... with a little customization*/ * { margin: 0; } html,body { height: 100%; } .wrapper { padding-left: 20px; padding-right: 20px; min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -4em; } .push { height: 40px; clear: both; } /* End of Sticky footer*/ /* User Panel (that sidepanel on the left side with navigation etc) */ .user-panel { border: 1px solid #999; -webkit-border-radius: 5px 5px 5px 5px; -moz-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; -webkit-box-shadow: #666 0px 1px 1px; -moz-box-shadow: #666 0px 1px 1px; box-shadow: #666 0px 1px 1px; background: #F3F3F1; background: -webkit-gradient(linear, 0 0, 0 bottom, from(#F3F3F1), to(#2B2B2B)); background: -webkit-linear-gradient(#F3F3F1, #2B2B2B); background: -moz-linear-gradient(#F3F3F1, #2B2B2B); background: -ms-linear-gradient(#F3F3F1, #2B2B2B); background: -o-linear-gradient(#F3F3F1, #2B2B2B); background: linear-gradient(#F3F3F1, #2B2B2B); -pie-background: linear-gradient(#F3F3F1, #2B2B2B); behavior: url(/PIE.htc); width: 175px; float: left; height: inherit; background: gray; } /* End of User Panel */
任何幫助表示讚賞...謝謝...
編輯:
感謝安德烈Ligios的小提琴!
與Firefox效果很好,但對瀏覽器不工作...
嗨,你好,早上好,我親愛的同事,從我的立方體。謝謝......我調整了一些值來解釋頁眉和頁腳高度。它的工作,謝謝。 –