Home > front end >  BootstrapTable fixedColumns merge cells
BootstrapTable fixedColumns merge cells

Time:02-07

In fixed multiple columns, and fixed column line abnormal at the time of merger, consult a great god have a solution?
The code is as follows:


<meta name="viewport" content="width=device - width"/& gt;
Index
<script SRC="https://bbs.csdn.net/topics/~/Scripts/jquery-3.3.1.js" & gt; </script>
<link rel="stylesheet" href="https://bbs.csdn.net/topics/~/Content/bootstrap.min.css"/& gt;
<link rel="stylesheet" href="https://bbs.csdn.net/topics/~/Scripts/dist/bootstrap-table.css"/& gt;
<script SRC="https://bbs.csdn.net/topics/~/Scripts/bootstrap.min.js" & gt; </script>
<link rel="stylesheet" href="https://bbs.csdn.net/topics/~/Scripts/dist/bootstrap-table.min.css"/& gt;
<script SRC="https://bbs.csdn.net/topics/~/Scripts/dist/bootstrap-table.min.js" & gt; </script>
<script SRC="https://bbs.csdn.net/topics/~/Scripts/dist/locale/bootstrap-table-zh-CN.js" & gt; </script>
<link rel="stylesheet" href="https://bbs.csdn.net/topics/~/Scripts/dist/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css"/& gt;
<script SRC="https://bbs.csdn.net/topics/~/Scripts/dist/extensions/fixed-columns/bootstrap-table-fixed-columns.min.js" & gt; </script>
$(function () {
$(" # table "). BootstrapTable (' destroy '). BootstrapTable ({
FixedColumns: true,
FixedNumber: 4//fixed number of columns
});
})
</script>

<body>


A header & lt;/th>
Header 2 & lt;/th>
Header three & lt;/th>
Header four & lt;/th>
Header five & lt;/th>
Six meter & lt;/th>
Header seven & lt;/th>
Header eight & lt;/th>
Header nine & lt;/th>
Ten meter & lt;/th>
Header 11 & lt;/th>
Header twelve & lt;/th>
Header 13 & lt;/th>
Header 14 & lt;/th>
Header 15 & lt;/th>
Header 16 & lt;/th>
Header 17 & lt;/th>
Header 18 & lt;/th>
Header 19 & lt;/th>
Header 20 & lt;/th>
Header 21 & lt;/th>
Header 22 & lt;/th>
23 header & lt;/th>
Header 24 & lt;/th>








5 & lt;/td>
6 & lt;/td>
7 & lt;/td>
8
9 & lt;/td>
10 & lt;/td>
11 & lt;/td>
12 & lt;/td>
13 & lt;/td>
14 & lt;/td>
15 & lt;/td>
16 & lt;/td>
17 & lt;/td>
18 & lt;/td>
19 & lt;/td>
20 & lt;/td>
21 & lt;/td>
22 & lt;/td>
23 & lt;/td>
24 & lt;/td>


5 & lt;/td>
6 & lt;/td>
7 & lt;/td>
8
9 & lt;/td>
10 & lt;/td>
11 & lt;/td>
12 & lt;/td>
13 & lt;/td>
14 & lt;/td>
15 & lt;/td>
16 & lt;/td>
17 & lt;/td>
18 & lt;/td>
19 & lt;/td>
20 & lt;/td>
21 & lt;/td>
22 & lt;/td>
23 & lt;/td>
24 & lt;/td>





  • Related