[英]support media query in IE7 and IE8
i use media query for responsive my site but it doesn't support in IE<9 i download "matchmedia.js" and "css3-mediaqueries-js.js" code from github,BUT it doesn't work . 我使用媒体查询来响应我的网站,但IE <9中不支持。我从github下载了“ matchmedia.js”和“ css3-mediaqueries-js.js”代码,但无法正常工作。 AM I missing something? 我错过了什么吗? in addition i use this meta tag too,but it doesn't work. 另外我也使用这个meta标签,但是它不起作用。
The polifill I used was adding styles for matched media queries as styles tags on the page. 我使用的策略填充是将匹配的媒体查询的样式添加为页面上的样式标签。 So rules were getting out of order. 因此,规则变得混乱了。
For example such code 例如这样的代码
.smth { margin: 1em; }
@media only screen and (max-width: 900px) { .smth { margin: .5em; } }
.other { margin-top: 0; }
becomes reordered as 重新排序为
.smth { margin: 1em; }
.other { margin-top: 0; }
/* following line appears on the page */
.smth { margin: .5em; }
And in case of 并且在
<div class="smth other">...</div>
works incorrectly. 工作不正确。
Check libraries you are using for having same problem. 检查您使用的库是否存在相同的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.