如何解决灯箱广告:如何为图片添加字幕
我安装了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 举报,一经查实,本站将立刻删除。