我正在尝试使用 CSS 边框间距属性将此表中的图像与空格分开,但由于某种原因它不起作用。您可以在此处查看图像如何仍然粘在 JSFiddle 中:http: //jsfiddle.net/nKgnq/
我尝试通过在图像周围放置填充来破解它,但无济于事。我怎样才能把这些照片分开?
生成表格的代码在这里:
<div class="table-right">
<table class="fixed-height fixed-width fixed-cell">
<tr>
<td class="valigned"><h3 class="date">Details</h3>
<?php the_field('details');?>
</td>
<td class="valigned">
<a href="<?php echo MultiPostThumbnails::get_post_thumbnail_url(get_post_type(), 'secondary-image');?>">
<img class="detail-image" src="<?php echo MultiPostThumbnails::get_post_thumbnail_url(get_post_type(), 'secondary-image');?>">
</a>
</td>
<td class="valigned">
<a href="<?php echo MultiPostThumbnails::get_post_thumbnail_url(get_post_type(), 'tertiary-image');?>">
<img class="detail-image" src="<?php echo MultiPostThumbnails::get_post_thumbnail_url(get_post_type(), 'tertiary-image');?>">
</a>
</td>
<td class="valigned">
<a href="<?php echo MultiPostThumbnails::get_post_thumbnail_url(get_post_type(), 'fourth-image');?>">
<img class="detail-image" src="<?php echo MultiPostThumbnails::get_post_thumbnail_url(get_post_type(), 'fourth-image');?>">
</a>
</td>
</tr>
</table>
</div>