首页 > 技术文章 > css简单实现鼠标在页面中不可点击

art-poet 2020-04-07 10:17 原文

方法一:

cursor: not-allowed;
 
document.getElementById('id').style.cursor="not-allowed";

方法二:

pointer-events:none;

 

推荐阅读