如何将背景图像用于 DIV 以及双线边框,以便图像不会通过边框显示?
How do you use a background-image for a DIV along with a double line border so that the image doesn't show through the border?
我有一个 DIV,我在其中放置了背景图片。我还使用双线为 DIV 设置了边框。你可以看到线条之间的图像。有什么办法可以避免吗?
是的,您可以使用 background-clip: padding-box
来阻止它。
我有一个 DIV,我在其中放置了背景图片。我还使用双线为 DIV 设置了边框。你可以看到线条之间的图像。有什么办法可以避免吗?
是的,您可以使用 background-clip: padding-box
来阻止它。