-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (44 loc) · 1.65 KB
/
Copy pathindex.html
File metadata and controls
48 lines (44 loc) · 1.65 KB
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Image Hotspot Demo</title>
<link rel="stylesheet" href="css/hotspot.css">
</head>
<body>
<main class="page">
<section class="hotspot-section" aria-label="产品热点图">
<div class="hotspot-image-wrap">
<img
class="hotspot-bg"
src="images/hotspots-banner.webp"
alt="背景展示图"
/>
<div class="hotspot-item card-right" style="--x: 30%; --y: 56%;">
<button class="hotspot-dot" type="button" aria-label="查看产品 01">+</button>
<a class="hotspot-card" href="#" target="_blank" rel="noopener">
<img src="images/hot01.webp" alt="Product 01" />
<span>Product 01</span>
</a>
</div>
<div class="hotspot-item card-top" style="--x: 55%; --y: 42%;">
<button class="hotspot-dot" type="button" aria-label="查看产品 02">+</button>
<a class="hotspot-card" href="#" target="_blank" rel="noopener">
<img src="images/hot02.webp" alt="Product 02" />
<span>Product 02</span>
</a>
</div>
<div class="hotspot-item card-left" style="--x: 78%; --y: 50%;">
<button class="hotspot-dot" type="button" aria-label="查看产品 03">+</button>
<a class="hotspot-card" href="#" target="_blank" rel="noopener">
<img src="images/hot03.webp" alt="Product 03" />
<span>Product 03</span>
</a>
</div>
</div>
</section>
</main>
<script src="js/hotspot.js"></script>
</body>
</html>