div 边框半径问题(在 Firefox 和 Opera 上)
正如你所看到的,有两张图片。首先,在 chrome 上。右侧有 Beğen 和 Yorumlar 按钮。边框看起来非常好。
但第二张图片显示; firefox 和 opera 有边框半径问题。我尝试做 border-witdh:thin、border:1px Solid 等。但它看起来一样。
怎么办呢?你有什么想法吗?
抱歉我的英语不好。谢谢
as you see there are two pictures.First, on chrome . There are Beğen and Yorumlar buttons on right side.Border is looking very well..
But second pictures shows that ; firefox and opera have problem with border radius.I try to do border-witdh:thin, border:1px solid etc.. But Its look like same.
How can handdle it ? Do you have any idea ?
sorry for my english.Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这种效应通常称为“背景渗色”或“泄漏”。它可以通过一些简单的 CSS 来修复:
我首先从 Mike Harding 的博客中了解到这一点:
http://tumble.sneak.co.nz/post/928998513 /修复背景出血
这是 W3C 规范:
http://www.w3.org/TR/css3-background/ #the-background-clip
This effect is commonly referred to as "background bleed", or "leaking". It can be fixed through some simple CSS:
I first learned of this from Mike Harding's blog:
http://tumble.sneak.co.nz/post/928998513/fixing-the-background-bleed
And here's the W3C spec:
http://www.w3.org/TR/css3-background/#the-background-clip
...看起来几乎可以在不使用边框的情况下逃脱。按钮和背景之间有足够的对比度。您是否尝试过使用 1px(模糊半径)的外发光?
... it almost looks like may get away without using border at all. There's enough contrast between the button and the background. Did you try using outer glow of 1px (blur-radius)?
帮助将 chome 的边框设置为
border:1px double ...
。我知道 Chrome 有半径边框的问题。将其设置为双倍而不是实心有助于清理它一点。有点烦人。To help with chome's border to
border:1px double ...
. I know chrome has an issue with borders with a radius. Setting it to double rather than solid helps clean it up a bit. Kind of annoying.