IE的CSS问题

Kar*_*rem 2 css

请检查一下:

http://img62.imageshack.us/img62/3598/ieff.png

为什么它比FF更高...我希望它在IE中像FF一样

#message2 {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 105; 
    background-color: #034678;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 100%;
    text-align: center;
    font-weight: bold;
        border-bottom: 2px solid #FFF;
  height: 26px;
  width: 100%;
} 

<div class="message2" id="message2" onclick="closeNotice2()" style="display: none">
Yo, <b><? echo $pusername; ?></b> - <? echo $_SESSION["user_message"]; ?> 
<a class="close-notify" onclick="closeNotice2()">X</a>
</div> 
Run Code Online (Sandbox Code Playgroud)

当我改变高度的大小时,它在FF中改变但在IE中它保持相同的大小..?

Knu*_*Knu 5

你有没有尝试添加line-height到你的CSS?
另外一个CSS复位可能会帮助默认margin和padding.