請問誰知道圖片在bootstrap里怎么實現(xiàn)自適應(yīng)呢?

尖果兒
2014-08-07
2 回答
舉報
0/150
提交
取消
請問誰知道圖片在bootstrap里怎么實現(xiàn)自適應(yīng)呢?
2014-08-07
舉報
2015-10-29
bootstrap的網(wǎng)格已經(jīng)具有了自適應(yīng)功能,在head里面加上這個<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>,
同時圖片不能指定寬和高,比如:width:xxxpx;要用百分比表示:width: 100%;
2014-08-08
bootstrap中的網(wǎng)格已具備自適應(yīng)功能了。
<div class="container-fluid">
<div class="row">
... </div>
</div>
里面放置你的grid就OK了