1.HTML

  <div>
        TextBox<br />
        <input type="text" name="name" value=" " /><br />
        TextArea <br />
        <textarea></textarea>
    </div>

2.方法一-----根据标签名,修改样式(页面中的所有input标签)

   input,textarea{
            border-color:red;
        }

 3.方法二(页面中的text标签)

 input[type=text],textarea{
            border-color:red;
        }

 

相关文章:

  • 2022-12-23
  • 2021-07-21
  • 2021-05-01
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
猜你喜欢
  • 2021-10-16
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-09-29
  • 2022-12-23
相关资源
相似解决方案