我正在尝试使用bootstrap3开发响应式模板。除了IE8以外,所有主要浏览器都显示完美的结果。我连续创造了3个col。但在IE8的桌面版中,它只显示1行中的1列。这意味着IE8在桌面上显示标签或移动版本。我在head部分使用了html5sive.js和respond.js。我也运行了bootstrap jumborton示例。但结果相同。这是没有正确显示的代码 -
<div class="col-sm-4 col-xs-12 col-lg-4 col-md-4 ">
<div class="product">
<div class="product-img ">
<img class="img-responsive" src="img/show1.png" alt="" />
</div>
<div class="row product-description">
<div class="col-md-1 col-sm-1 col-xs-1 col-padding ">
<img class="product-logo" src="img/show1-icon.png" alt="" />
</div>
<div class="col-md-9 col-sm-9 col-xs-12 col-padding col-left-padding">
<h4>Stylish Brown Leather Shoes</h4>
<p><strong>$599</strong></p>
</div>
<div class="col-md-2 col-sm-2 col-xs-12 col-padding">
<a href=""><img class="basket" src="img/show-busket.png" alt="" /></a>
</div>
</div>
</div>
</div>
<div class="col-sm-4 col-xs-12 col-lg-4 col-md-4 ">
<div class="product">
<div class="product-img">
<img class="img-responsive" src="img/show2.png" alt="" />
</div>
<div class="row product-description">
<div class="col-md-1 col-sm-1 col-xs-1 col-padding ">
<img class="product-logo" src="img/show2-icon.png" alt="" />
</div>
<div class="col-md-9 col-sm-9 col-xs-12 col-padding col-left-padding">
<h4>Elegant Green Wonderful Shoes</h4>
<p><strong>$599</strong></p>
</div>
<div class="col-md-2 col-sm-2 col-xs-12 col-padding">
<a href=""><img class="basket" src="img/show-busket.png" alt="" /></a>
</div>
</div>
</div>
</div>
<div class="col-sm-4 col-xs-12 col-md-4 col-lg-4 ">
<div class="product">
<div class="product-img">
<img class="img-responsive" src="img/show3.png" alt="" />
</div>
<div class="row product-description">
<div class="col-md-1 col-sm-1 col-xs-1 col-padding ">
<img class="product-logo" src="img/show3-icon.png" alt="" />
</div>
<div class="col-md-9 col-sm-9 col-xs-12 col-padding col-left-padding">
<h4>Women Cream and Beautiful Shoes</h4>
<p><strong>$599</strong></p>
</div>
<div class="col-md-2 col-sm-2 col-xs-12 col-padding ">
<a href=""><img class="basket" src="img/show-busket.png" alt="" /></a>
</div>
</div>
</div>
</div>
</div>
</div>
答案 0 :(得分:2)
我不喜欢ie,但似乎你必须使用ua-compatible
<meta http-equiv="X-UA-Compatible" content="IE=8,IE=EmulateIE8,IE=7,IE=EmulateIE7" />