【发布时间】:2016-04-20 19:04:24
【问题描述】:
使用下面的代码,Mac 上的 Chrome 和 Opera(支持边框半径的最新版本)都在圆角(这似乎是定义的背景图像的一部分)之外显示了一个小的蓝色区域。为什么?
<!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>
【问题讨论】:
标签: rounded-corners css