【问题标题】:IE9 input type=submit rendering border-bottom incorrectly. Fine in IE7 and 8IE9 输入类型=提交渲染边框底部错误。在 IE7 和 8 中很好
【发布时间】:2012-05-09 18:32:28
【问题描述】:

我试图让边框底部和所有其他边为 0。这似乎导致 IE9 根据文本颜色呈现边框底部颜色。在所有其他浏览器以及之前版本的 IE9 中都能正常工作。

#submit, #searchsubmit {
    background: #2B4C7E;
    color: #DCE0E6;
    padding: 0.5em 1em;
    margin: 0 0 0.5em;
    border: 0;
    border-bottom: 0.5em solid #0E2952;
}

如果我删除border: 0;,IE9 中的border-bottom 会正确呈现,但会显示其他边框。

http://jsfiddle.net/56exW/

【问题讨论】:

  • border: 0; 更改为border: 0 #0E2952; 似乎可行。

标签: css input internet-explorer-9 submit border


【解决方案1】:

试试这个:

border-style: solid;
border-color:#0E2952;
border-width:0 0 0.5em 0;

【讨论】:

    猜你喜欢
    • 2013-02-14
    • 1970-01-01
    • 1970-01-01
    • 2012-12-21
    • 2012-02-15
    • 2018-07-13
    • 2019-11-10
    • 2012-04-24
    • 1970-01-01
    相关资源
    最近更新 更多