所以我基本上是在制作一个网格,其中单击是一个圆圈,双击是一个正方形。但是,如果我返回到已单击的框并单击或双击,它会更改其中的形状。有没有办法让已经点击的框不再可点击?
最佳答案
我认为将 CSS 属性“pointer-events”设置为“none”应该可行。
pointer-events: none;
关于javascript - JS : Is there a way to make a cell in a grid not clickable?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54954568/