[英]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.