handsontable合并单元格

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.css">

</head>

<body>
    <div id="example"></div>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.js"></script>

    <script>
        const container = document.querySelector('#example');

        const hot = new Handsontable(container, {
            data: [
                ['', 'Tesla', 'Volvo', 'Toyota', 'Ford'],
                ['2019', 10, 11, 12, 13],
                ['2020', 20, 11, 14, 13],
                ['2021', 30, 15, 12, 13]
            ],
            rowHeaders: true,
            colHeaders: true,
            height: 'auto',
            autoWrapRow: true,
            autoWrapCol: true,
            licenseKey: 'non-commercial-and-evaluation', // for non-commercial use only
            mergeCells: [{
                row: 1,
                col: 1,
                rowspan: 2,
                colspan: 2
            }]
        });
    </script>
</body>

</html>

在这里插入图片描述

相关推荐

  1. 【jxls 单元合并

    2024-06-09 05:52:01       20 阅读
  2. EsayExcel读取合并单元

    2024-06-09 05:52:01       57 阅读
  3. 【Excel】合并复杂单元

    2024-06-09 05:52:01       43 阅读
  4. table根据字段合并单元

    2024-06-09 05:52:01       25 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-09 05:52:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-09 05:52:01       101 阅读
  3. 在Django里面运行非项目文件

    2024-06-09 05:52:01       82 阅读
  4. Python语言-面向对象

    2024-06-09 05:52:01       91 阅读

热门阅读

  1. 如何在 C# 中轻松从 HTML 中提取纯文本

    2024-06-09 05:52:01       29 阅读
  2. scrapy入门例子:获取百度热搜

    2024-06-09 05:52:01       29 阅读
  3. mysql解决深度分页的问题

    2024-06-09 05:52:01       26 阅读
  4. 自动驾驶人工智能

    2024-06-09 05:52:01       26 阅读
  5. 平滑值(pinghua)

    2024-06-09 05:52:01       24 阅读
  6. Ubuntu bash按Table不联想

    2024-06-09 05:52:01       29 阅读
  7. 素数幂变换问题

    2024-06-09 05:52:01       25 阅读
  8. html前端怎么赚钱:探索多元盈利途径

    2024-06-09 05:52:01       26 阅读