javascript - JS : Is there a way to make a cell in a grid not clickable?

标签 javascript html css grid cell

所以我基本上是在制作一个网格,其中单击是一个圆圈,双击是一个正方形。但是,如果我返回到已单击的框并单击或双击,它会更改其中的形状。有没有办法让已经点击的框不再可点击?

Here is my current code

最佳答案

我认为将 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/

相关文章:

javascript - firebase 仅最后一条记录

spring - 在 grails 中的 Controller 操作之间传递对象的最佳方式

html - IE11 anchor 焦点虚线轮廓

html - 设计一个元素以组合输入和发送按钮

css - 在 R 演示文稿中扩展 R 代码块的宽度

javascript - 将 DIV 动画设置为全高并切换回定义的高度

javascript - 如何使用 Bootstrap 创建类似响应式选项卡的导航栏?

javascript - DOM 到 JSON 的递归函数

javascript - 按顺序切换嵌套列表?

html - 链接下划线不会消失