通过拖动选择表格中的单元格(垂直或水平)
- 论坛
- 通过拖动选择表格中的单元格(垂直或水平)
26 浏览
通过拖动选择表格中的单元格(垂直或水平)
这是我的示例。
我需要实现一个方法,可以在水平或垂直方向上分配1至4个单元格。
有人可以帮忙吗?
我看了这个问题,但我不明白如何将其改进到我的示例中。
.custom { display: table; margin: 15% auto 15% auto; width: 75%; max-height: 75%; background-color: aqua; border: 4px double black; } .custom-cell { position: relative; width: 25%; float: left; height: 25%; padding-bottom: 25%; background: radial-gradient(red, black) } .custom-cell-clicked { position: relative; width: 25%; float: left; height: 25%; padding-bottom: 25%; background: radial-gradient(black, red) }