如何设置input 的背景颜色? 这样试了不对:background-color:red 如何设置input 的背景颜色?其中type为text 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <style>input.text{background-color:red}</style><input type="text" class="text"><input type="text" style="background-color:blue"> <style> input.text{background-color:red} </style> <script> function mm() { var a = document.getElementsByTagName("INPUT"); for(var i=0; i<a.length; i++) if(a[i].type=="text") a[i].className="text"; } </script> <body onload="mm()"> <input/><input/></body> extjs 3.0 动态生成树? 与数据库有关 下拉框联动的问题 tomcat访问不到指定的页面 求jsp+bean+servlet的网站 有个问题不明白,请教 求救:jsp页面乱码问题 struts生成的代码不标准? 各位大大,帮帮小弟一个忙实现一个程序!!!!!!在线等!!!!!!! java实现socket通信 也许你有遇到过这种问题——框架页面 jsp中的selete 超简单的问题, 20分送上
<style>
input.text{background-color:red}
</style>
<input type="text" class="text">
<input type="text" style="background-color:blue">
input.text{background-color:red}
</style>
<script>
function mm()
{
var a = document.getElementsByTagName("INPUT");
for(var i=0; i<a.length; i++) if(a[i].type=="text") a[i].className="text";
}
</script>
<body onload="mm()">
<input/>
<input/></body>