1

有人可以解释一下为什么左上角和左下角以这种方式显示:

在此处输入图像描述

使用以下 CSS:

form .form-field
 {
    height: 20px;
    padding: 5px;
    border: 1px solid #ccc;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
 }

输入字段和文本区域都有“表单字段”类。(在 Safari、Chrome 和 Firefox 中的行为相同)

4

1 回答 1

0

就像 TJ 指出的那样,在您的 DOM 树中较高的位置有红色背景。将边框半径添加到角落会暴露这一点。使用浏览器的检查器找到它。应该是快速修复。

于 2012-12-26T14:39:28.613 回答