HTML输入文本框异常行为

时间:2014-05-02 16:51:12

标签: php html css

enter image description here

我正在使用joomla模板我在其中创建了一个自定义表单一切都很好但是当我单击任何输入字段并将鼠标移出该输入框时,它会获得一些未知属性,边框大小增加2px,如上所示状态“点击并鼠标移出”。我检查了悬停的CSS属性,但它对我不起作用。我该如何摆脱这个问题? 我的CSS是

.userforminput{
border: 1px solid #ccc;border-radius: 0;color: #333;height: 15px;padding:   2px;background: 0;margin: 0 2px 4px;max-width: 327px;
}
.userforminput:hover{

border: 1px solid #000000;
}

1 个答案:

答案 0 :(得分:0)

在你的css中,添加以下内容:

input {
    border:0;
    outline:none;
}
相关问题