我正在使用 Bootstrap :http://ironsummitmedia.github.io/startbootstrap-simple-sidebar/ 我想改变这个白色背景,但是当我生成一些数据并滚动页面时,它下面仍然是白色。
我在这个 Bootstrap 中只改变了这个:
html, body {
height: 100%;
}
#wrapper {
height: 100%;
width: 100%;
background: red;
最佳答案
你现在可以吗
body { 背景颜色:红色; }
或者你可以使用渐变:-
#wrapper {
背景:红色;/* 对于不支持渐变的浏览器 */
背景:-webkit-线性渐变(红色,黄色);/* 对于 Safari 5.1 到 6.0 */
背景:-o-线性渐变(红色,黄色);/* 对于 Opera 11.1 到 12.0 */
背景:-moz-linear-gradient(红色,黄色);/* 对于 Firefox 3.6 到 15 */
背景:线性渐变(红色,黄色);/* 标准语法 */
高度:100vh;
}
关于javascript - Bootstrap,滚动后没有背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34911969/