1、首先我们需要自定义一个css样式
.bg { background:url(图片地址) no-repeat center; background-size:contain;}2、在我们需要用到该样式的div中引用它
3、如果需要图片不随滚动条滚动,即固定不动则加fixd
.bg { background:url(图片地址) no-repeat center fixed; background-size:contain;}上一篇:bootstrap中如何实现分页
下一篇:bootstrap里面有哪些东西
相关内容