你好,我目前正試圖弄清楚如何讓兩個類在使用Bootstrap時並排浮動,我希望完成的是讓我的文本浮動到左側,圖像浮到右側!這裏是我的代碼:Bootstrap腳手架
<div class="row-fluid">
<div id="test-1" class="span6"></div>
<div id="test-2" class="span6"></div>
</div>
body {
background-color: black;
}
#test-1 {
background-color: white;
height: 200px;
width: 200px;
}
#test-2 {
background-image: url("http://www.rd.com/wp-content/uploads/sites/2/2016/04/01-cat-wants-to-tell-you-laptop.jpg");
background-size: cover;
background-repeat: no-repeat;
height: 200px;
width: 200px;
}
是你的意思是其img在區域和文本的右側在區域的左側?那麼你應該使用左拉和右拉類bootstrap – sagar
@sagar是的,這是正確的 –
你實際使用哪個版本的Bootstrap? – vanburen