【发布时间】:2016-05-07 16:47:19
【问题描述】:
我正在使用 stellar.js 编写一个带有视差的 html 页面。 在 CSS 中我使用:
html, body {height: 100%;}
#slide1 {
height: auto;
background-image:url('../images/1.jpg');
background-color:#fff;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed; }
但是图片被剪掉了,图片底部不可见。
是否可以设置部分(#slide1)的高度以显示所有图像?
【问题讨论】:
标签: html css parallax background-size stellar.js