課程
/前端開發
/Bootstrap
/玩轉Bootstrap(基礎)
請問誰知道圖片在bootstrap里怎么實現自適應呢?
2014-08-07
源自:玩轉Bootstrap(基礎)
正在回答
bootstrap的網格已經具有了自適應功能,在head里面加上這個<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>,
同時圖片不能指定寬和高,比如:width:xxxpx;要用百分比表示:width: 100%;
bootstrap中的網格已具備自適應功能了。
<div class="container-fluid"> <div class="row"> ... </div>
</div>
里面放置你的grid就OK了
舉報
告訴你使用Bootstrap,并且能夠獨立定制出適合自己的Bootstrap
3 回答
1 回答
2 回答
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-10-29
bootstrap的網格已經具有了自適應功能,在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中的網格已具備自適應功能了。
<div class="container-fluid">
<div class="row">
... </div>
</div>
里面放置你的grid就OK了