【发布时间】:2015-07-01 04:18:20
【问题描述】:
我有一张图片作为我的背景,但我不知道如何使我的代码具有响应性,以便在我缩小浏览器窗口时图像保持一致。这是我的代码:
body {
margin-top: 50px;
}
.full {
background: url(../melissa.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
}
【问题讨论】:
标签: css image twitter-bootstrap background