使用下面的代碼,Mac和Mac上的Chrome和Opera(支持border-radius的最新版本)都顯示了圓角外的小藍色區域(這似乎是部分定義的背景圖像)。爲什麼?使用邊界半徑時可見的背景圖像部分
<!doctype html>
<head>
<title>Testcase for rounded corners on submit button with bg-image</title>
<style type="text/css">
input[type="submit"] { background: url(http://skriblerier.net/div/rounded-corners-input/bg-bottom.png); color: #fff; height: 40px; width: 150px; border-radius: 10px; border: 1px solid #fff; font-size: 14px }
</style>
</head>
<body>
<form>
<div><input type="submit" /></div>
</form>
</body>
a-ha!這是「填充」,沒有「盒子」。謝謝!這並沒有突出區別:http://tumble.sneak.co.nz/post/928998513/fixing-the-background-bleed – 2010-10-08 11:11:45