Bootstrap遇上ie8 图片大小无法控制问题
若程序在其他浏览器中运行格式良好,而ie8图片大小出现问题:
1.参考http://www.open-open.com/lib/view/open1453350948730.html修改相关内容解决bootstrap3 与IE8浏览器兼容问题
2.在bootstrap.css中找到以下代码并修改
img {
/*width: auto\9;注释掉*/
height: auto;
max-width: 100%;
vertical-align: middle;
border: 0;
-ms-interpolation-mode: bicubic;
}
3.请设置好图片的宽度和高度,还有其父级元素的高度和宽度
若在其他浏览器中格式不ok的话:
检查一下有没有清除浮动