1
固定ナビゲーションバーとスティッキーフッタを使用したレイアウトがあります。本体には、左側に列が整列した流体容器があります。私はその列を本体(ナビゲーションバーとフッタの間)に垂直に塗りつぶしてもらいたいですが、動作させることはできません。私は見つけることができるすべての例を試したが、役に立たなかった。ブートストラップ3 100%高さDIV(Navbarとスティッキーフッタ付き)
私はこれまでの内容を示すためにJSFiddleを作成しました。
これは私が達成するために望んでいるものです:
マイHTML:あなたは上height:calc(100vh - 110px);
を使用することができます
/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 60px;
background-color: #999999;
}
/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */
body > .container-fluid {
padding-top: 50px;
}
.container-fluid .col-sm-6 {
padding: 0;
}
.navbar {
margin-bottom: 0;
}
.footer {
padding: 15px 0;
}
.main-content {
background: #efefef;
padding: 20px;
height: 100%;
min-height: 100%;
}