Article Introduction: iemobile condition comment. |
Microsoft has introduced the function of conditional annotation at the beginning of IE5, and can specify different styles and contents for different versions of IE browsers by annotation-type syntax. In Windows Phone7, Microsoft introduced the Iemobile keyword to bring the conditional annotation function into the WP7 mobile browser.
syntax is similar to normal conditional annotations:
<!--[if iemobile]>
wow, you're using mobile IE!
<! [endif]->
In fact, Iemobile is a token in the UA of IE7 browsers in WP7, similar to MSIE in normal browsers, and the following version number can be used as a parameter:
<!--[if Iemobile 7]>
Wow, you're using mobile IE 7!
<! [endif]-->
Think WP7 has a lot of cool features, by the way more play, and then find a variety of cups:
- Media= "Handheld" is no longer supported. We know that for ordinary mobile terminals, we can use media type to assign them special style files, and in the previous Windows Mobile version of the system, media= "handheld" is supported, but to WP7, Could Microsoft feel that its mobile IE7 can rival iOS Safari and Android's WebKit lite? In short, it no longer supports the handheld type!
- Iemobile Media queryin WP7! Since the iemobile condition annotation can be added after the version number, then, Microsoft's style, it is estimated that you can not be in Windows Phone to tangle media query function!