Internet explorer 8 IE Mobile条件注释由ie8及更低版本读取

Internet explorer 8 IE Mobile条件注释由ie8及更低版本读取,internet-explorer-8,responsive-design,conditional-comments,ie-mobile,Internet Explorer 8,Responsive Design,Conditional Comments,Ie Mobile,我正在开发一个响应性强的网站,并使用IE8和windows phone上的internet explorer都无法读取的媒体查询。因此,我对这些使用条件注释。对于IE8和更低版本,我使用以下代码段包含屏幕css: <!--[if lt IE 9]> ...some stylesheets... <![endif]--> 对于windows phone,我必须包含移动分辨率的css,我使用以下代码段: <!--[if IEMobile]> ...some

我正在开发一个响应性强的网站,并使用IE8和windows phone上的internet explorer都无法读取的媒体查询。因此,我对这些使用条件注释。对于IE8和更低版本,我使用以下代码段包含屏幕css:

<!--[if lt IE 9]>
...some stylesheets...
<![endif]-->

对于windows phone,我必须包含移动分辨率的css,我使用以下代码段:

<!--[if IEMobile]> 
...some stylesheets...
<![endif]--> 

我的问题是IE8似乎也在IE mobile的条件评论中使用样式表,因为一旦我在IE mobile的条件评论中包含样式,IE8及以下版本中的整个站点就会崩溃

我也尝试过这种组合:

<!--[if (IEMobile)&!(lt IE 9)]> 
根据这一点:

您应该能够使用此语法组合条件:

<!--[if IEMobile]><![if gt IE 8]> Yo IE 9+ on mobiles <![endif]><![endif]-->

对于所有遇到这个问题的人:我无法解决它!只是在某种程度上改变了一切,我不需要css只用于windows mobile。