首页 > bootstrap 如何自适应当前窗口大小

bootstrap 如何自适应当前窗口大小

bootstrap 自适应当前窗口大小,按窗口大小等比例缩放?


等比缩放(不是自适应)是一个 stupid idea ,相信我,因为我做过。


用bootstrap官网上的代码直接就是自适应的了,详情你可以看看官网上的介绍
链接描述


自己搜索Bootstrap 响应式设计,善用搜索工具。


<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

三个scale,initial max min 1.0代表1:1缩放,自己到网上搜索吧,不是很复杂的东西问起来太慢了


bootstrap3的栅格系统就是干这个的,去看看bootstrap3的文档吧 http://v3.bootcss.com/css/#type

【热门文章】
【热门文章】