简体   繁体   English

IE8中CSS浮动属性中的问题

[英]Issues in css floating property in IE8

I have been created simple webpage by using html and css. 我已经通过使用html和CSS创建了简单的网页。

Here is the worked jsfiddle, http://jsfiddle.net/y7xmr6ct/ [part of work only] 这是工作的jsfiddle, http://jsfiddle.net/y7xmr6ct/ [仅部分工作]

In header cart-summary section displayed in all browsers expect ie like this: http://s4.postimg.org/tuvx8avt9/Untitled_1.png 在所有浏览器中显示的标题购物车摘要部分中,应该是这样的: http : //s4.postimg.org/tuvx8avt9/Untitled_1.png

But in ie8, displayed left side of my header. 但是在ie8中,显示在我标题的左侧。

I tried to use clear:left; 我尝试使用clear:left; or width:100%; width:100%; to my class .large--right, but nothing change. 对我的班级。 .large--right,但是没有任何变化。

Here is my css: 这是我的CSS:

.large--right {
    float: right !important;
    }

and also I in my #footer {border-top: 1px solid #ddd;} didn't work in ie8 而且我在我的#footer {border-top: 1px solid #ddd;}也无法在ie8中工作

May i know, how can i fix this? 我可以知道,我该如何解决?

Can anyone help me to fix this, thanks in advance. 有人可以帮助我解决此问题,谢谢。

IE8 does not support media queries. IE8不支持媒体查询。 You're code is mobile first and so because the media queries aren't firing, the layout is the mobile styles. 您的代码是移动优先的,因此因为媒体查询没有触发,所以布局是移动样式。

Take a look at RespondJS for media query support in IE8. 查看IE8中对媒体查询支持的RespondJS

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

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