原生js鼠标移入移出

    window.onload = function () {
      var op = document.querySelector('#submitBtn1');
      op.onmouseover = function () {
        this.style.color = "#f58220";
      };
      op.onmouseout = function () {
        this.style.color = "#000";
      };
    };

 

posted @ 2022-07-21 10:23  Model-Zachary  阅读(127)  评论(0编辑  收藏  举报