我最初是用黑色边框和圆角的图像。然而,在Webkit中,我没有一个圆形的图像和一个圆形的边框,而是最终形成了一个矩形图像和一个圆形边框。矩形图像似乎与角落的边界部分重叠,使得看起来有点奇怪。在Firefox和Opera上,我想出了我想要的结果,但我想知道如何在webkit上实现相同的效果。这里有一些代码可以运行,以查看我在说什么。先谢谢您的帮助!Webkit边框半径切除边框
<!doctype html>
<html>
<head>
<title> Testing Website </title>
<style type="text/css">
img {
height: 500px;
border: 5px solid #000;
border-radius: 20px;
-moz-border-radius: 20px;
}
</style>
</head>
<body>
<img src = "http://www.public-domain-image.com/studio/slides/sunflower-on-white-background.jpg">
</body>
</html>
用框阴影代替边框,效果很好! –