-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy path2211.html
66 lines (64 loc) · 1.41 KB
/
2211.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<script>
init({
title: 'Issue #2211',
desc: 'Rotated table column headers(<a href="https://github.com/wenzhixin/bootstrap-table/issues/2211" target="_blank">#2211</a>).',
links: ['bootstrap-table.min.css'],
scripts: ['bootstrap-table.min.js']
})
</script>
<template>
<table
id="table"
data-toggle="table"
data-classes="table table-hover table-header-rotated"
data-url="json/data5.json"
>
<thead>
<tr>
<th
data-field="id"
class="id"
data-width="100"
data-formatter="Row %s"
></th>
<th data-field="name">
Item Name
</th>
<th data-field="price">
Item Price
</th>
<th data-field="column1">
Item Column1
</th>
<th data-field="column2">
Item Column2
</th>
<th data-field="column3">
Item Column3
</th>
<th data-field="column4">
Item Column4
</th>
</tr>
</thead>
</table>
</template>
<style>
.bootstrap-table .fixed-table-container .table thead th .th-inner {
overflow: inherit;
}
.table-header-rotated td.id {
font-weight: bold;
}
.table-header-rotated th {
height: 120px;
white-space: nowrap;
}
.table-header-rotated th:not(.id) > div {
transform: translate(-9px, 0px) rotate(-45deg);
width: 30px;
}
.table-header-rotated th > div > span {
padding: 5px 10px;
}
</style>