css3实现单击图片切换轮播效果

css3实现单击图片切换轮播效果

一款纯CSS样式,单机第一张图片切换下一张,实现图片切换轮播效果。

使用方法
在页面引入CSS3样式文件

1
<link rel="stylesheet" href="css/style.css">

HTML结构

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div class="carousel">
<input type="checkbox" class="faux-ui-facia">
<div class="slide" slide="5" annot="This is the fifth slide title.">
<img src="img/3361b5e1.jpg" alt="Slide 5">
</div>
<input type="checkbox" class="faux-ui-facia">
<div class="slide" slide="4" annot="This is the fourth slide title.">
<img src="img/photo-1415356838286-df6fd593e8b3.jpg" alt="Slide 4">
</div>
<input type="checkbox" class="faux-ui-facia">
<div class="slide" slide="3" annot="This is the third slide title.">
<img src="img/JaI1BywIT5Or8Jfmci1E_zakopane.jpg" alt="Slide 3">
</div>
<input type="checkbox" class="faux-ui-facia">
<div class="slide" slide="2" annot="This is the second slide title.">
<img src="img/6108b580.jpg" alt="Slide 2">
</div>
<input type="checkbox" class="faux-ui-facia">
<div class="slide" slide="1" annot="First slide title.">
<img src="img/2c0343f7.jpg" alt="Slide 1">
</div>
<div class="counter" count="5"> / 5</div>
</div>
当前内容只有登录了才能查看,如果您已经注册,请登录
1

发表评论