【发布时间】:2014-01-14 13:10:46
【问题描述】:
我使用foundation 5 框架来设计页面。它在背景图像的顶部放置了一个徽标。链接:Demo Page
这两张图片的样式是:
header {
position: relative;
}
.logo {
background: url("../img/text2save.png");
background-position: left top;
background-repeat: no-repeat;
background-size: contain;
position: absolute;
z-index: 2;
width: 20%;
height: 80px;
}
header div {
background: url("../img/banner.jpg");
background-repeat: no-repeat;
height: 300px;
background-size: 100%;
}
问题: 当浏览器缩小时,背景图像会在其下方留下空白区域,即另一个元素会向下移动。我想不出解决办法。
【问题讨论】:
标签: html css responsive-design zurb-foundation