[英]Bootstrap, no background after scrolling
我正在使用引導程序: http : //ironsummitmedia.github.io/startbootstrap-simple-sidebar/我想更改白色背景,但是當我生成一些數據並滾動頁面時,它仍然是白色。
我僅在此引導程序中進行了以下更改:
html, body {
height: 100%;
}
#wrapper {
height: 100%;
width: 100%;
background: red;
你現在能不能
body { background-color: red; }
或使用漸變可以:
#wrapper { background: red; /* For browsers that do not support gradients */ background: -webkit-linear-gradient(red, yellow); /* For Safari 5.1 to 6.0 */ background: -o-linear-gradient(red, yellow); /* For Opera 11.1 to 12.0 */ background: -moz-linear-gradient(red, yellow); /* For Firefox 3.6 to 15 */ background: linear-gradient(red, yellow); /* Standard syntax */ height: 100vh; }
嘗試這個
#wrapper {
height: 100vh;
width: 100%;
background: red;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.