-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (41 loc) · 1.19 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<!-- 不能眼高手低,写一个轮播的功能 -->
<div id="bannerWarp">
<span id="left">left</span>
<div id="bg"></div>
<span class="right">
right
</span>
<ol>
<li>
<img src="./img/1.png" alt="">
</li>
<li>
<img src="./img/2.png" alt="">
</li>
<li>
<img src="./img/3.png" alt="">
</li>
<li>
<img src="./img/4.png" alt="">
</li>
</ol>
</div>
<p>
1. 可能是史上最丑的轮播图 <br>
2. 发现的问题 <br>
js原生修改背景图应该是 XX.style.XXX = 'xxx',我经常忘记style <br>
3.获取一个元素下的子元素,this.queryseletor('xxx')
</p>
<script src="index.js"></script>
</body>
</html>