如何使用bootstrap的背景图像

时间:2016-03-30 16:48:41

标签: html twitter-bootstrap css3 responsive-design

我的背景图像非常大1600 X 3700.我需要为我的项目添加bootstrap,每次我做背景图像时都会消失,只有我的背景图像的前100px显示。使用bootstrap与背景图像的正确方法是什么。这是我到目前为止使用的

html{ background: url('image-path.png') no-repeat; -webkit-   background-size: cover;-moz-background-size: cover;-o-background-size: cover; background-size: cover;}

1 个答案:

答案 0 :(得分:0)

试试这个:

position:fixed;
top:0;
bottom:0;