Microsoft CSS 的修正方法


Enter Microsoft Conditional Comments. Each different IE/Windows version can be detected, and there is much more detail about how they can be used by following that link but suffice to say because I don't want to be incorporating multiple IE stylesheets and to keep things as simple as possible for these particular menus, I'm using a general one to target all versions of IE/Windows:





<!--[if IE]>
<style type="text/css" media="screen">
</style>
<![endif]-->




By putting that comment after all the other CSS rules, to ensure the integrity of the Cascade, we're asking IE/Windows only to read and apply whatever styles or linked stylesheet are within that comment. Any other browsers will ignore it.

留言

這個網誌中的熱門文章

在 Chromebook 上使用嘸蝦米輸入法簡介

修復 Thunderbird 壓實重整造成的信件內容異常

[Ubuntu] 在 IBus 輸入法中,嘸蝦米的安裝心得