水平分发数字
figure {
display: grid;
padding: 5px;
float: left;
background-color: #fff;
font-size: .875em;
}
figure img {
display: block;
max-width: 100%;
}
figcaption {
display: table-caption;
caption-side: bottom;
text-align: center;
padding: 0 5px 5px;
}
<figure>
<a href="https://www.youtube.com/watch?v=-8JQB_wXjmk><img src=http://wordpress.local/wp-content/uploads/Thumbnail_1.png"></a>
<figcaption>Video</figcaption>
<a href="https://www.youtube.com/watch?v=jP8iCuXeM3g"><img src=http://wordpress.local/wp-content/uploads/Thumbnail_2.png"></a>
<figcaption>PDF</figcaption>
</figure>
我想使其像img1 catchion1 |水平分发图像IMG2字幕2 | IMG3 CAPTION3
如果可能的话,我希望它是一个遍布3的网格,因为图像的数量可能会有所不同。 我正在WordPress中的Beaver Builder HTML模块中编辑此内容。
感谢您的帮助:)
figure {
display: grid;
padding: 5px;
float: left;
background-color: #fff;
font-size: .875em;
}
figure img {
display: block;
max-width: 100%;
}
figcaption {
display: table-caption;
caption-side: bottom;
text-align: center;
padding: 0 5px 5px;
}
<figure>
<a href="https://www.youtube.com/watch?v=-8JQB_wXjmk><img src=http://wordpress.local/wp-content/uploads/Thumbnail_1.png"></a>
<figcaption>Video</figcaption>
<a href="https://www.youtube.com/watch?v=jP8iCuXeM3g"><img src=http://wordpress.local/wp-content/uploads/Thumbnail_2.png"></a>
<figcaption>PDF</figcaption>
</figure>
Hi I'm having some issues with distributing images horizontally. The Code above results in this:
I Would like to make it distribute the images horizontally like img1 caption1 | img2 caption2 | img3 caption3
If possible I'd like it to be a grid thats 3 across and as deep as required, as the number of images could vary.
I am editing this in a beaver builder html module in wordpress.
Thanks for the help :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最终弄清楚了:)
I ended up figuring it out :)