回复 3楼xujingtian的帖子
这段代码,供您参考:
- <script type="text/javascript">
- function Button1_onclick() {
- var col = FpSpread1.ActiveCol;
- var row = FpSpread1.ActiveRow;
- var cell = FpSpread1.GetCellByRowCol(row, col);
- //获取单元格坐标范围
- var celltop=cell.offsetLeft;
- var cellleft=cell.offsetTop;
- var columnwidth = cell.offsetWidth;
- var rowheight = cell.offsetHeight;
- //使用坐标判断单元格索引
- if (true) {
-
- }
- }
- </script>
复制代码 |