請不要將此問題視爲重複的一個,因爲我新的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