请不要将此问题视为重复的一个,因为我新的bie世界的CSS, 我正在一个新的项目,它有很多的CSS文件通过googling,我了解了css的功能和它的用法,我想知道一件事,比如说,如果我正在编写一个小的css示例,我想为Internet Explorer 7,8编写一个浏览器特定的css样式表, 9,请告知如何做到这一点。浏览器特定的CSS为Internet Explorer 7,8,9
回答
使用条件注释:
<!--[if lte IE 8]><link/><![endif]-->
更多信息:http://msdn.microsoft.com/en-us/library/ms537512%28v=vs.85%29.aspx
只是一个IE版本中使用
<!--[if IE 9]><link href="ie9.css" rel="stylesheet" type="text/css"/><![endif]-->
更改版本( “9”)添加到您的愿望。如果你想解决小于或等于所有版本特定的一种,使用方法:
<!--[if lte IE 9]><link href="ie0-9.css" rel="stylesheet" type="text/css"/><![endif]-->
这将解决所有版本的从0到9,而不是10如需更详细的信息请查看我发布的链接。
非常感谢您发布样本标签 – 2013-03-12 07:51:49
@TuntunDffhf认真吗?你有没有想过看看Linus发布的链接?一切都可以在这里找到> http://css-tricks.com/how-to-create-an-ie-only-stylesheet/ – BenM 2013-03-12 07:55:29
@BenM非常感谢,它真的很有帮助。 – 2013-03-12 07:58:23
- 1. 在Internet Explorer 7,8,9浏览器中,Request.UrlReferrer返回“null”
- 2. 浏览器Internet Explorer专用的css
- 3. 使用Internet Explorer浏览器
- 4. 多个Internet Explorer浏览器
- 5. Internet Explorer浏览器版本的特定文档模式
- 6. 浏览器特定的CSS
- 7. 使用Internet Explorer浏览器的Selenium ide
- 8. 在Internet Explorer中的浏览器模式
- 9. 在FF和Internet Explorer中,Chrome浏览器中的Chrome浏览器
- 10. 多个Internet Explorer版本浏览器测试(Internet Explorer 6-8)?
- 11. 为特定浏览器设置Internet协议
- 12. Internet Explorer 8中的CSS问题实际浏览器
- 13. CSS不使用Internet Explorer的工作,但与其他浏览器
- 14. Internet Explorer到谷歌浏览器在wapache
- 15. Internet Explorer浏览器问题引导
- 16. 仅供Internet Explorer浏览器下载JavaScript/CSS
- 17. 工具浏览器特定的CSS转换为跨浏览器CSS
- 18. Css - 重写Internet Explorer特定样式
- 19. 特定于Internet Explorer CSS毛刺
- 20. Drupal 7浏览器特定的css
- 21. Firefox浏览器特定的CSS填充
- 22. Mozilla浏览器特定的CSS
- 23. 浏览器特定的CSS只有
- 24. Internet Explorer 8的图像浏览问题
- 25. Chrome浏览器火狐与形象定位与Internet Explorer中
- 26. 如何在mchanize中使用Internet Explorer作为浏览器
- 27. 如何编程设置为浏览器模式在Internet Explorer
- 28. 水豚使用Internet Explorer作为浏览器而不是Firefox
- 29. 为特定浏览器加载不同的CSS样式[Not IE]
- 30. 下载Internet Explorer浏览器的影子过滤器?
对IE7-9特定的css文件使用meta condtion。 – 2013-03-12 07:44:02
对不起,但即使作为一个新手,你可以使用搜索引擎。 – 2013-03-12 07:44:13
@Sudip帕尔你可以请张贴标签,这将有助于很多。 – 2013-03-12 07:48:49