繁体   English   中英

Internet Explorer中的响应式设计

[英]Responsive design in Internet Explorer

我已经建立了一个响应式设计的网站。 在Chrome,Mozilla Firefox,Opera中,一切正常,但Internet Explorer(版本10,11)也显示台式机中的平板电脑版本。 如何强制IE使用桌面版本? 先感谢您。 媒体查询如下:

@media only screen and (min-width: 481px) {}\\ for Tablet
@media only screen and (min-width: 769px) {} \\for Desktop PC

以下代码在所有浏览器中加载mystyles.css,仅在Internet Explorer 8中加载complex.css:

<link rel="stylesheet" media="screen and (min-width:600px)" href="mystyles.css" />

<!--[if (IE 8)]>
<link rel="stylesheet" media="screen" href="complex.css" title="complex layout" />
<![endif]-->

暂无
暂无

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

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