问题描述
我安装了LightBox以弹出图片。我已成功使图片弹出,但无法在图片下方显示标题。
这是我的密码。
<section class="post-list">
<a href="img/compu.jpg" data-title="My caption" class="post"> //⭐︎Tried here
<figure class="post-image">
<img src="img/compu.jpg" data-lightBox="compu.jpg" alt=""> //⭐︎Tried here to
</figure>
<div class="post-overlay">
<p>
<span class="post-likes"><i class="fa fa-heart" aria-hidden="true"></i> 150</span>
<span class="post-comments"><i class="fa fa-comment" aria-hidden="true"></i> 10</span>
</p>
</div>
</a>
</section>
我在几个不同的位置插入了data-title="My caption"
,但我找不到正确的位置。
任何帮助将不胜感激。预先谢谢你。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)