css简单实现鼠标在页面中不可点击

方法一:

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

方法二:

pointer-events:none;

猜你喜欢

转载自www.cnblogs.com/art-poet/p/12651768.html