Opera 边框半径不隐藏背景的角落
我创建了一个框 #text
,其顶部有一个类 .text_bg
,如您所见 在此 jsfiddle 中。
在 Firefox、Chrome 和 IE 中,它显示得很好,正如您在 jsfiddle 中看到的那样,但在 Opera 中,框的圆角不会剪切背景。
我该如何解决这个问题? 这个问题的类似主题建议背景剪辑和背景起源,但似乎都不适合我。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不明白你为什么要这样做,用额外的 div 。只需将背景设置为repeat-x,与div 顶部对齐即可。我无法保存到 jsfiddle 来向您展示示例,所以这里是更新的代码。
更新了 HTML:
更新了 CSS:
I don't understand why you're doing it the way you are, with the extra div. Just set the background to repeat-x, aligned to the top of the div. I can't save to jsfiddle to show you the example, so here's the updated code.
Updated HTML:
Updated CSS: