为了账号安全,请及时绑定邮箱和手机立即绑定

请问谁知道图片在bootstrap里怎么实现自适应呢?

正在回答

3 回答

bootstrap的网格已经具有了自适应功能,在head里面加上这个<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>,

同时图片不能指定宽和高,比如:width:xxxpx;要用百分比表示:width: 100%;

0 回复 有任何疑惑可以回复我~

bootstrap中的网格已具备自适应功能了。

<div class="container-fluid">
 <div class="row">
   ...  </div>

</div>

里面放置你的grid就OK了

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
玩转Bootstrap(基础)
  • 参与学习       314519    人
  • 解答问题       2275    个

告诉你使用Bootstrap,并且能够独立定制出适合自己的Bootstrap

进入课程
意见反馈 帮助中心 APP下载
官方微信