当文本字段为空且没有光标int时,文本字段需要透明且拼写检查器不起作用。显示结果CCD_ 1要稍微向左。
CSS、JavaScript或PHP中的代码。
<form method="post" name="tasktitleform">
<input id="Search" class="search" type="text" name="Search" contenteditable="true" spellcheck="true" />
<input class="save" value="submit" type="submit" />
</form>
页脚代码没有粘在窗口下面。这就是我从谷歌复制的方法,只需将颜色更改为浅黄色。
在这个拼写检查中不工作CSS在IE中不工作。
您的问题不清楚。根据您的问题标题,以下是用于更改焦点和焦点输出事件的不透明度的jquery片段
$("#tbx").focus(function(){
$(this).css("opacity","1");
});
$("#tbx").focusout(function(){
if($(this).val()=="")
$(this).css("opacity","0.6");
});
jsfiddle sample
http://jsfiddle.net/zxdwa0e8/3/