これがコードです
select
{
font-size: 9px;
color: Blue;
font-weight: bold;
height: 30px;
}
IE9 で動作しない理由はありますか。
助けてくれてありがとう。
これがコードです
select
{
font-size: 9px;
color: Blue;
font-weight: bold;
height: 30px;
}
IE9 で動作しない理由はありますか。
助けてくれてありがとう。
これを行う html 要素の種類によって異なりますが、 display:block を追加します。それに。それはIEのトリックを行います
リチャード、あなたが自分のコードをテストしたとき、レンダリングモードの癖はありましたか? 私はあなたのコードをテストしましたが、追加したのは次の例のような doctype と html タグだけでした:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
SELECT {
font-size: 9px;
color: Blue;
font-weight: bold;
height: 30px;
}
</style>
</head>
<body>
<select name="">
<option>Test data 1</option>
</select>
</body>
</html>