效果出来不一样,那个缩略图没有在预期的位置0.0
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Preview Slideshow</title>
<style>
*{
padding:0;
margin: 0;
}
body{
padding:50px 0;
background-color: #fff;
font-size:14px;
font-family:'Avenir Next';
color:#555;
-webkit-font-smoothing:antialiased;
/*字体抗锯齿*/
}
.slider .main,.slider .main .main-i,
.slider{
width: 100%;
height: 400px;
position:relative;
/*overflow: hidden;*/
}
.slider .main{
overflow: hidden;
}
{
}
.slider .main .main-i img{
width: 100%;
position:absolute;
left: 0;
top:0;
z-index: 1;
}
.slider .main .main-i .caption{
position: absolute;
right: 50%;
top: 30%;
z-index: 9;
}
.slider .main .main-i .caption h2{
text-align: right;
font-size: 40px;
line-height: 50px;
color: #b5b5b5;
}
.slider .main .main-i .caption h3{
text-align: right;
font-size: 70px;
line-height: 70px;
color: #000;
font-family: 'Open Sans Condensed';
}
.slider .ctrl{
width: 100%;
height: 13px;
line-height: 13px;
text-align: center;
position: absolute;
left: 0;
bottom: -13px;
background-color: #f00;
}
.slider .ctrl .ctrl-i{
display: inline-block;
width: 150px;
height: 13px;
background-color: #666;
box-shadow: 0 1px 1px rgba(0,0,0,.3);
}
.slider .ctrl .ctrl-i img{
position: absolute;
width: 100%;
left: 0;
bottom: 50px;
}
</style>
</head>
<body>
<div>
<div>
<div>
<div>
<h2>H2 caption</h2>
<h3>H3 caption</h3>
</div>
<img src="imgs/{{index}}.jpg" alt="">
</div>
</div>
<div>
<a href="javascript:void(0);">
<img src="imgs/{{index}}.jpg" alt="">
</a>
</div>
</div>
</body>
</html>