Border-radius bleeding
问题 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? 回答1: To fix this in all browsers you should use: -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; I found the answer here 回答2: Add: -webkit-background-clip: padding-box; To fix this in Webkit. 回答3: I had a problem with a bootstrap panel border or background bleeding to a HTML header <h>