-chengkai

</head>
<!--hover,foucs,active-->
/*hover当鼠标经过改变属性*/
/*foucs当鼠标点击的时候改变颜色*/
/*active当鼠标按中不放开的时候改变颜色*/
<style>
input[type="text"]:hover{
background-color:#006;
}
input[type="text"]:foucs{
background-color:#9F3;
}
input[type="text"]:active{
background-color:#F0C;}
</style>
<body>
<input type="text"name="name" />
<input type="text"name="age" />
</body>
</html>

分类:

技术点:

相关文章:

  • 2021-09-22
  • 2021-10-12
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-04
  • 2022-02-06
  • 2021-09-11
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
相关资源
相似解决方案