How to arrange pictures horizontally with spacing between pictures? After using float, the spacing cannot be set. _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:41:38
Original
2827 people have browsed it

<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>
Copy after login


Reply to the discussion (solution)

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?

How to save images depends on the margin
But the key question is
Why are there different margin values?

You need to set different margin values ​​for each image How can we do this without writing the margin value in the label?


Otherwise, the margin value will also be taken out from the database. . .
Actually, I’m also curious about why there are different margins
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template