作用:使用自定义一个按钮

代码:

<div class = 'btn'>按钮</div>

$(".btn").mousedown(function () {   $(this).css({ "backgroundColor": "#aaa" }); }).mouseup(function () {   $(this).css({ "backgroundColor": "#ccc" }); }); });

 

相关文章:

  • 2021-09-11
  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-12
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
相关资源
相似解决方案