我想在Windows Mobile 7.5上定位IE瀏覽器。誰能告訴我是否有沒有辦法使用條件註釋來定位Windows Mobile 7.5瀏覽器?
<!--[if lt IE <mobile browser>]> <include retina display> <[end if]-->
條件註釋語法樣式適用於定位Windows Mobile?
編輯:由於下面的評論我能找到解決方案。 The <!--[if IEMobile]> <[end if]-->
語法適用於Windows Mobile 7,但我無法使它適用於Windows Mobile 7.5。因爲我正在構建一個不需要在桌面設備上呈現出色的移動網站,所以我能夠使用通用的<!--[if gt IE 7]>
評論來解決我在兩個呈現之間存在的問題。
如果任何人有一個更優雅的解決方案,因爲所需的桌面支持,這將無法正常工作,我很樂意聽到它。
你能結合兩者嗎? `<! - [if IEMobile]><! - [if gt IE 7] - > ... ` – mange 2011-12-15 03:36:35
在我的模擬器7.5測試中甚至不會觸發`<! - [if IEMobile ]>`。就有條件的評論而言,它就像IE9一樣。 – donut 2012-01-23 21:39:26