我有一个文本框,它在我的页面上充当搜索框。我预先填充该字段的单词为“SEARCH”,其默认文本颜色为#D6D6D0。
使用CSS,当有人在框中输入文本时,是否可以将文本颜色更改为#FFFFFF?
使用CSS,当有人在框中输入文本时,是否可以将文本颜色更改为#FFFFFF?
<input type="text" name="q" value="SEARCH" id="searchFieldText">
#searchFieldText {
background: url("/images/crmpicco/search_bg3.png") no-repeat scroll 0 0 #000000;
border: medium none;
color: #D6D6D0;
float: left;
font-family: Arial,Helvetica,sans-serif;
font-size: 10px;
height: 21px;
padding-left: 0;
padding-top: 3px;
width: 168px;
}