Internet Explorer上的Bootstraps网格系统 [英] Bootstraps Grid System on Internet Explorer

查看:92
本文介绍了Internet Explorer上的Bootstraps网格系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在网站上使用Bootstraps,但是Internet Explorer似乎并未使用Bootstraps中的网格系统.我们有一个分配了class ="col-sm-6 col-md-4 col-md-offset-4"的类,但是在Internet Explorer 11上,它正在屏幕上延伸.这是问题的图像 http://wikicopy.com/loginproblemIE.png 背景遍布整个屏幕.它可以在Firefox,Chrome和Safari上正常运行.

We are using Bootstraps on a website but Internet explorer doesn't seem to be using the grid system from Bootstraps. We have a class assigned with class="col-sm-6 col-md-4 col-md-offset-4" but on Internet Explorer 11 it is stretching across the screen. Here is an image of the problem http://wikicopy.com/loginproblemIE.png The background stretches across the whole screen. It works fine on Firefox, Chrome, and Safari.

推荐答案

您的网站是否以兼容模式呈现?如果是这样,请在下面添加meta标记即可解决该问题.

Is your site rendering in compatibility mode? if so, adding the meta tag below should fix the issue.

IE兼容模式 旧的Internet Explorer兼容模式不支持Bootstrap.为确保您使用的是IE的最新呈现模式,请考虑在页面中包含适当的标记:

IE Compatibility modes Bootstrap is not supported in the old Internet Explorer compatibility modes. To be sure you're using the latest rendering mode for IE, consider including the appropriate tag in your pages:

<meta http-equiv="X-UA-Compatible" content="IE=edge">

这篇关于Internet Explorer上的Bootstraps网格系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆