请教下高手们!~!~给分,帮帮忙
下面的代码怎么加才能改变要显示的 "不能为空 "的字体和颜色啊!~!
<HTML>
<BODY>
<table>
<tr>
<td>
<input name= "b " type= "text ">
</td>
<td id= "one "> </td> </tr>
<tr> <td colspan= "2 ">
<input name= "a " type= "button " value= "关闭 " onclick= "logout() ">
</td> </tr>
</table>
</BODY>
</HTML>
<script>
function logout(){
var aa = document.getElementById( "b ").value;
if(aa!= " "){
alert( "yes ");
}else{
document.getElementById( "one ").innerText= "不能为空 ";
}
}
</script>
------解决方案-------------------- <td> <font id= "one " color= " "> </font> <td>