2013-07-29 29 views
0

是否可以在Fancybox上的圖像下添加HTML描述或文本?在fancybox上添加html以及圖像

這是一個模擬了什麼我談論:

Mock up

如果這是不可能的,你知道,能做到這一點的任何插件?

請幫

+0

檢查http://fancyapps.com/fancybox/#useful第二種不同的選項 – JFK

回答

1

爲什麼是它可能 下面是你需要添加圖像後添加HTML:

<div class="fancybox-title fancybox-title-float-wrap"> 
    <span class="child"> 
     <div>HI add the html here or delete the div and add the html here</div> 
    </span> 
</div> 

要親自測試一下,繼續前往這個地方:http://fancyapps.com/fancybox/demo/,並做一些權利點擊元素檢查。

0

我不是一個的fancybox用戶,但我可以建議你ShadowBox

<a href="http://www.ancestry.com/wiki/images/archive/a/a9/20100708215937!Example.jpg" rel="shadowbox;height=200;width=200" title="<b>My Image</b><span>Desc</span>">My Image</a>​ 

#sb-title, #sb-title-inner {height: 3em;} 
#sb-title-inner b {display: block; font-size: 1.2em;} 
#sb-title-inner span {display: block;}​ 

小提琴EXAMPLE

希望這有助於