我选择的图像太大,不适合垂直或水平页面。这里是我有:如何在我的页面中完善jumbotron图像
<style>
.jumbotron {
height: 500px;
width: 100%;
}
.jumbo-container {
background-image: url('../img/challenge2.jpg');
background-repeat: no-repeat;
background-size: cover;
width: 100%;
}
</style>
<body>
<div class="jumbotron">
<div class="jumbo-container">
</div>
</div>
</body>
链接到我想要的图片:http://fc09.deviantart.net/fs71/f/2010/347/0/2/life_challenges_by_eddieretelj-d34scch.jpg
不完全确定你在问什么,但我增加了身高:100%;检查小提琴; http://jsfiddle.net/mhussa19/r0pq2zra/ – Phreak 2015-02-08 23:38:51
@Phreak在您的小提琴中水平切割图像。我如何防止这种情况发生? – Walt 2015-02-08 23:40:54
这是什么问题? – 2015-02-08 23:42:58