边界半径出血 [英] Border-radius bleeding
本文介绍了边界半径出血的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想给< nav>
指定border-radius,其中< a>
有一个图像有背景,但图像持续走出边界半径。这是为什么?
I want to give border-radius to a <nav>
in which all the <a>
have an image has background, but the image keeps going outside the border-radius. Why is that?
推荐答案
要在所有浏览器中解决此问题,您应该使用:
To fix this in all browsers you should use:
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
我找到了答案 here
这篇关于边界半径出血的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文