Home >Web Front-end >HTML Tutorial >How to arrange pictures horizontally with spacing between pictures? After using float, the spacing cannot be set. _html/css_WEB-ITnose
<table border="1" width="950" height="250" cellspacing="0" cellpadding="0"><tr style="height:50px;"><td style="border-bottom:1px solid #ffffff;width:200px;font-size:15px;text-align:center;color:#f60;">特别推荐</td><td style="background-color:#dddddd;"></td></tr><tr><td colspan="2"> <img src="__PUBLIC__/img/01.jpg" width="120" height="100"/><img src="__PUBLIC__/img/02.jpg" width="120" height="100"/><img src="__PUBLIC__/img/03.jpg" width="120" height="100"/><img src="__PUBLIC__/img/04.jpg" width="120" height="100"/><img src="__PUBLIC__/img/05.jpg" width="120" height="100"/></td></tr></table>
Isn’t it possible to use margin?
Just margin or padding
Isn’t it possible to use margin?
Margin is set for each picture. So what if the picture is taken from the database?
Isn’t it possible to use margin?
Margin is set for each picture, so what if the picture is taken from the database? Do not write styles in tags
Do not write styles in tags
If you want to set different margin values for each image, how can you do it without writing it in the tag?
Do not write the style in the tag
Set different margin values for each image without writing the tag. How can it be done here?
You need to set different margin values for each image How can we do this without writing the margin value in the label?