简体   繁体   English

调整浏览器大小时Bootstrap响应不起作用

[英]Bootstrap responsive not working when I resize browser

I am new to bootstrap, I need to convert a static page to bootstrap responsive, Width is 980 px. 我是引导程序的新手,我需要将静态页面转换为响应引导程序,宽度为980像素。 so I created boot columns according to design and put every div in column with css correction. 因此我根据设计创建了启动列,并使用CSS校正将每个div放入列中。 In normal view everything is fine, But when I re-size window it show like this. 在普通视图中,一切都很好,但是当我调整窗口大小时,它显示如下。

http://imgur.com/zOnLh3a http://imgur.com/zOnLh3a

I have never converted a non-responsive to responsive, please help 我从未将非响应式转换为响应式,请帮助

Note: What are media queries? 注意:什么是媒体查询? Do i have to write css for 3 different sizes? 我必须为3种不同的大小写CSS吗?

from twitter bootstrap take the needed template and save the file..and from that take needed js and css of bootstrap..and integrate in the site... 从twitter bootstrap中获取所需的模板并保存文件..然后从中获取所需的bootstrap js和css ..并集成到站点中...

the media query mainly used for responsive are 主要用于响应的媒体查询是

/* CSS Document */
@media (max-width:1200px)
@media (min-width:992px) and (max-width:1199px)
@media (max-width:991px)
@media (min-width:991px)
@media (min-width:768px) and (max-width:991px)
@media (max-width:767px)
@media (max-width:480px)
@media only screen and (min-width: 320px)

Media query is missing. 缺少媒体查询。

        @media screen(max-width:800px) { 
            body { font-size:0.8em; }
            img { width:300px; }
        }

For the better understanding go through the link 为了更好的理解,请通过链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM