输入和文本字段中的背景色 [英] Background color in input and text fields
本文介绍了输入和文本字段中的背景色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想更改表单的文本和输入字段中的颜色背景,但是当我这样做时,它也会影响提交"按钮!可以用其他不影响按钮的方式完成吗?
I would like to change the color background in the text and input fields of a form, but when I do this it also affects the submit button! Could it be done in some other way that does not affect the button?
我使用了以下代码:
input, textarea {
background-color: #d1d1d1;
}
推荐答案
input[type="text"], textarea {
background-color : #d1d1d1;
}
希望有帮助:)
工作示例, http://jsfiddle.net/C5WxK/
这篇关于输入和文本字段中的背景色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文