-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtools.html
115 lines (111 loc) · 4.88 KB
/
tools.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>光伏安装工具与材料</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="styles/main.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand" href="index.html">返回</a>
</div>
</nav>
<main class="container py-5">
<!-- 工具表格 -->
<h3 class="mb-4">安装工具</h3>
<div class="table-responsive mb-5">
<table class="table table-striped table-hover align-middle stripe-light">
<thead>
<tr>
<th scope="col">图片<br><span class="text-muted small">Image</span></th>
<th scope="col">名称<br><span class="text-muted small">Name</span></th>
<th scope="col">描述<br><span class="text-muted small">Description</span></th>
<th scope="col">规格<br><span class="text-muted small">Specification</span></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img src="https://s2.loli.net/2025/01/01/46k1fYlPNiyX3Dg.png"
alt="Roof anchor"
class="tool-img"
data-bs-toggle="modal"
data-bs-target="#imageModal">
</td>
<td>Roof anchor</td>
<td>屋顶锚固件</td>
<td>标准规格</td>
</tr>
<tr>
<td>
<img src="https://s2.loli.net/2025/01/01/XvjJrqFUCw7WH8Q.png"
alt="Harness,Safety robe"
class="tool-img"
data-bs-toggle="modal"
data-bs-target="#imageModal">
</td>
<td>Harness,Safety robe</td>
<td>安全带,安全衣</td>
<td>标准规格</td>
</tr>
</tbody>
</table>
</div>
<!-- 材料表格 -->
<h3 class="mb-4">安装材料</h3>
<div class="table-responsive">
<table class="table table-striped table-hover align-middle stripe-light">
<thead>
<tr>
<th scope="col">图片<br><span class="text-muted small">Image</span></th>
<th scope="col">名称<br><span class="text-muted small">Name</span></th>
<th scope="col">描述<br><span class="text-muted small">Description</span></th>
<th scope="col">规格<br><span class="text-muted small">Specification</span></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img src="https://s2.loli.net/2025/01/01/HUDq5dfB36gls81.png"
alt="RT MINI"
class="tool-img"
data-bs-toggle="modal"
data-bs-target="#imageModal">
</td>
<td>RT MINI</td>
<td>RT MINI</td>
<td>标准规格</td>
</tr>
</tbody>
</table>
</div>
<!-- 图片模态框 -->
<div class="modal fade" id="imageModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="modal-header border-0">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body text-center p-0">
<img src="" class="modal-img img-fluid" alt="">
</div>
</div>
</div>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('.tool-img').forEach(img => {
img.style.cursor = 'pointer';
img.addEventListener('click', function() {
document.querySelector('.modal-img').src = this.src;
});
});
});
</script>
</body>
</html>