もんりぃ is undefined.

育児ネタとか、技術ネタとか。

Internet Explorer 8 向けの CSS ハックが Firefox でも適応されちゃう…?

未検証というか、深追いしてないんだけど、巷で言われている IE8 向けの \9 ハックが Firefox でも効いちゃってる疑惑。

検証コードは以下。

其の壱

html>/**/body {
  font-family /*\**/: "MS Pゴシック", sans-serif\9;
}

其の弐

body {
  font-family /*\**/: "MS Pゴシック", sans-serif\9;
}

其の参

body {
  font-family: "MS Pゴシック", sans-serif\9;
}

………全部ダメ。

諦めて、以下のようにして逃げた。死にたい。

    <link rel="stylesheet" href="hoge.css" type="text/css" media="all" />
    <!--[if IE 8.0]>
    <link rel="stylesheet" href="hoge-ie8.css" type="text/css" media="all" />
    <![endif]-->