Regarding the issue of expansion
刨冰加热
刨冰加热 2018-04-26 12:08:27
0
3
1492

1524715389126239.jpg

How can I shrink it so that it fits closely with the nested table?

For example, I made a similar one like this, part of the code is like this:

<table border="1">

<tr>

<td>

<img src="G:\OneDrive\Design Works\Poster Modification.jpg" width="20%" height="400px">xaubcsfp< /td>

<td>

<img src="G:\OneDrive\Design Works\The 8th Building (Architecture) Style Exhibition 14.jpg" width="20 %" height="400px">123456</td>

</tr>

The result is this:

1524715636775955.jpg

So how do I make the table border next to the image?

刨冰加热
刨冰加热

reply all(3)
灭绝师太

Give td a fixed width and height, and put the image as a background image

  • reply Thank you, teacher
    刨冰加热 author 2018-04-27 10:25:54
  • reply It's okay, because you still have a pure html layout without using css knowledge. There is no way to remove the built-in margins of the img tag image, so you still use the background image method. You will learn more solutions later... Come on
    灭绝师太 author 2018-04-27 10:30:48
legend

You should have a bottom margin below the picture. You can refer to
Solutions to the bottom margin below the IMG picture

  • reply OK, thank you~
    刨冰加热 author 2018-04-27 10:26:04
猪哥

Set the border margin to 0

  • reply Is the table border margin set to 0?
    刨冰加热 author 2018-04-26 14:46:12
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template