问题描述
我当前正在使用... http://leandrovieira.com/projects/提供的灯箱jquery/lightbox/
I am currently using light box provided by ... http://leandrovieira.com/projects/jquery/lightbox/
我如何拥有它,以便如果我单击某件作品,它会弹出灯箱并显示文本而不是图像?我想要的是灯箱中显示的条款和条件.
How do I have it so that if I click on a work it brings up the light box and shows text instead of an image?what I want is the terms and conditions shown up in a lightbox.
HTML
<span id="terms"> <a href="">Terms & Conditions</a></span>
jQuery
$(function () {
$('#terms a').lightBox();
});
推荐答案
似乎此灯箱插件仅适用于图片.您应该选择另一个插件,例如colorbox: http://jacklmoore.com/colorbox/它简单易用,并支持灯箱内的iframe和div元素.
It seems like this lightbox plugin only works with images.You should choose another plugin like colorbox: http://jacklmoore.com/colorbox/It's simple to use and supports iframes and also div elements inside the lightbox.
这篇关于灯箱中没有图片,只有文字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!