【发布时间】:2014-09-20 07:06:33
【问题描述】:
我使用浏览器窗口的如下css3 code to make a background image a near perfect 100%:
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
但是,我也使用了 Zurb Foundation 3 css 框架,它会自动使body 元素具有白色背景......所以上面的背景图片被隐藏了。显然我可以覆盖它,但这让我觉得我需要用 Foundation 以一种特殊的方式处理上述背景。真的吗?还是我也需要这个:
body {
background: transparent !important;
}
【问题讨论】:
标签: css background-image zurb-foundation