我在 div 中有一个滑块#slides
。
<div id="slides">
<img src="img/slide-1.jpg" />
<img src="img/slide-2.jpg" />
<img src="img/slide-3.jpg" />
<img src="img/slide-4.jpg" />
</div>
#slides {
display: none;
position:relative;
}
现在我想.slide-helpext
在显示一些文本的幻灯片图像中放置一个 div,我应该如何放置 div?
.slide-helpext
{
position:absolute;
top:30%;
left:60px;
}
编辑:我将幻灯片 div 放置如下:
<div id="slides">
<img src="img/example-slide-1.jpg" alt="Photo by: Missy S Link: http://www.flickr.com/photos/listenmissy/5087404401/">
<div class="slide-helpext">1</div>
<img src="img/example-slide-2.jpg" alt="Photo by: Daniel Parks Link: http://www.flickr.com/photos/parksdh/5227623068/">
<div class="slide-helpext">2</div>
<img src="img/example-slide-3.jpg" alt="Photo by: Mike Ranweiler Link: http://www.flickr.com/photos/27874907@N04/4833059991/">
<div class="slide-helpext">3</div>
<img src="img/example-slide-4.jpg" alt="Photo by: Stuart SeegerLink: http://www.flickr.com/photos/stuseeger/97577796/">
<div class="slide-helpext">4</div>
</div>
但是滑动数字然后图像,例如带有1的空白屏幕,然后是相应的图像!