請不要將此問題視爲重複的一個,因爲我新的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瀏覽器
- 2. 瀏覽器特定的CSS
- 3. 在Internet Explorer中的瀏覽器模式
- 4. 在FF和Internet Explorer中,Chrome瀏覽器中的Chrome瀏覽器
- 5. 多個Internet Explorer版本瀏覽器測試(Internet Explorer 6-8)?
- 6. Internet Explorer 8中的CSS問題實際瀏覽器
- 7. 僅供Internet Explorer瀏覽器下載JavaScript/CSS
- 8. 工具瀏覽器特定的CSS轉換爲跨瀏覽器CSS
- 9. Drupal 7瀏覽器特定的css
- 10. Mozilla瀏覽器特定的CSS
- 11. Internet Explorer 8的圖像瀏覽問題
- 12. Chrome瀏覽器火狐與形象定位與Internet Explorer中
- 13. 如何編程設置爲瀏覽器模式在Internet Explorer
- 14. 如何在mchanize中使用Internet Explorer作爲瀏覽器
- 15. 爲特定瀏覽器加載不同的CSS樣式[Not IE]
- 16. Internet Explorer 7 CSS
- 17. CSS和Internet Explorer
- 18. jQuery的外觀/在火狐但不是IE瀏覽器(Internet Explorer)
- 19. 如何停止瀏覽器(特別是Internet Explorer)進行javascript的超級緩存?
- 20. Internet Explorer發現瀏覽器的位置發生了延遲
- 21. 在Internet Explorer和跨瀏覽器中的音頻
- 22. 支持除Internet Explorer之外的所有瀏覽器
- 23. 在Internet Explorer中保持打開連接(7,8,9)
- 24. css設計因瀏覽器而異瀏覽器爲什麼?
- 25. 瀏覽器特定的jquery
- 26. JavaScript禁用時包含瀏覽器特定的CSS文件?
- 27. Internet Explorer CSS問題
- 28. Internet Explorer按鈕CSS
- 29. Internet Explorer css錯誤
- 30. Internet Explorer 8和CSS
對IE7-9特定的css文件使用meta condtion。 – 2013-03-12 07:44:02
對不起,但即使作爲一個新手,你可以使用搜索引擎。 – 2013-03-12 07:44:13
@Sudip帕爾你可以請張貼標籤,這將有助於很多。 – 2013-03-12 07:48:49