简体   繁体   English

带有 IE9 和实线边框的边框半径效果

[英]Border radius effect with IE9 and a solid border

I just noticed that my address link styled as a button does not properly show a radius in IE9 when using the CSS below:我刚刚注意到,当使用下面的 CSS 时,我的按钮样式的地址链接在 IE9 中没有正确显示半径:

a.btn {
    background: #F00;
    color:#333;
    font-size:12px;
    padding: 3px 4px 3px 4px;
    border:1px solid #444;
    border-radius:3px 3px 3px 3px; -moz-border-radius:3px; -webkit-border-radius:3px;
    cursor:default;
}

CSS example CSS 示例

When I remove the border:1px solid #444;当我删除边框时:1px solid #444; then a nice curved border appears.然后出现一个漂亮的弯曲边框。

Is this a bug with IE?这是IE的错误吗? In Firefox everything works good.在 Firefox 中一切正常。 Anyone else seen anything like this?其他人见过这样的事情吗? Seems like it only happens when border-radius is set to a low value.似乎只有当边界半径设置为低值时才会发生这种情况。 I know this is not very important on the scale of things but I'm interested to hear if anyone knows why the radius doesn't properly show.我知道这在事物的规模上并不是很重要,但我很想知道是否有人知道为什么半径没有正确显示。

It works for me.这个对我有用。 Check it using检查它使用

border-radius: 20px;

http://jsfiddle.net/6Nr2n/1/ http://jsfiddle.net/6Nr2n/1/

http://prntscr.com/2djxa http://prntscr.com/2djxa

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM