Home >Web Front-end >HTML Tutorial >When inserting a picture into td in html, why the picture cannot fill the entire td_html/css_WEB-ITnose

When inserting a picture into td in html, why the picture cannot fill the entire td_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:20:242633browse

After inserting a picture into td, why is there a gap in td after the picture? How can I remove it?


Reply to the discussion (solution)

1 Did you define the width of the first td, which is too wide?
2. For the second td, set align="left"



Try

to see if the width is wrong. I don’t know where the error is without the specific code.

It is easiest for you to directly set the size of the image to high="100%" width="100%"


Two attributes of the tag hspace="0" vspace="0", set the horizontal margin and vertical margin respectively. Setting them both to 0 can ensure that the picture sticks to the border.

Set the margin of the image to 0px;

Pay attention to whether the td itself has set the padding value

img sets the attribute display:block;

To be written together

Statement:
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