[英]adding a small image to a image slider caption with bxslider?
Using bxslider for a little sliding gallery. 使用bxslider滑动画廊。 I want to show captions, which I realize is built in. But...what I'd also like to do is add a small image to the caption.
我想显示字幕,我意识到这是内置的。但是...我还想做的是在字幕上添加一个小图像。
This is someone elses fiddle: http://jsfiddle.net/s2L9P/3/ 这是别人的小提琴: http : //jsfiddle.net/s2L9P/3/
It uses span's to display multiple lines of text in the caption: 它使用跨度在标题中显示多行文本:
<ul class="bxslider">
<li>
<img src="http://bxslider.com/images/730_200/hill_trees.jpg"/>
<div class="caption1">
<span>Image 1</span><br></br>
<span>j;jkljlk</span>
<div class="caption2"><a id="img1a" href="#">Visit Australia</a></div>
</div>
</li>
.
.
.
But if you stick a img tag in, it just displays as text. 但是,如果您粘贴img标签,它只会显示为文本。 How can I put images in the caption?
如何将图像放在标题中?
Thanks! 谢谢!
added image with no problem 毫无问题地添加了图像
see this fiddle 看到这个小提琴
<div class="caption1">
<img src="http://png-3.findicons.com/files/icons/861/tweet_my_web/128/single_bird.png" />
<span>j;jkljlk</span>
<div class="caption2"><a id="img1a" href="#">Visit Australia</a>
</div>
</div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.