Bootstraps Grid System on Internet Explorer

丶灬走出姿态 提交于 2019-12-08 02:35:56

问题


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.


回答1:


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

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">


来源:https://stackoverflow.com/questions/21311466/bootstraps-grid-system-on-internet-explorer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!