只能通过如下方式设置
<style>  
  input.hrong  
  {  
      font-family:arial;  
      font-weight:bold;  
      color:   red;  
  }  
  </style>  
  <SCRIPT   LANGUAGE="JavaScript">  
  function   mm()  
  {  
      var   a   =   document.getElementsByTagName("INPUT");  
      for   (var   i=0;   i<a.length;   i++)  
      if(a[i].type=="text")   a[i].className="hrong";  
  }  
  </SCRIPT>  
   
  <body   onload="mm()">  
  <input><input   type=button   value=mmm><input   type=password>

相关文章:

  • 2022-01-09
  • 2021-08-27
  • 2022-12-23
  • 2021-07-05
  • 2021-08-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案