当用户单击该字段时,我正在尝试为表单字段添加颜色边框,我擅长 html 和 javascript,有点 php,但我的 css 实际上很差。表单等的代码如下。如果有人可以指导或帮助我,我将不胜感激。代码:
<form id="search" action="http://www.bkslap.com/search/results.php" id="cse-search-box">
<input name="q" type="text" id="q" autocomplete="on" size="56" style="color:#ccc;" maxlength="128" id="q"
onblur="this.value = this.value || this.defaultValue; this.style.color = '#ccc';"
onfocus="this.value=''; this.style.color = '#9933FF';"
value="Search" />
</form>
有什么想法吗?