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
After inserting a picture into td, why is there a gap in td after the picture? How can I remove it?
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;