search

Home  >  Q&A  >  body text

Regarding the issue of expansion

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?

刨冰加热刨冰加热2404 days ago1494

reply all(3)I'll reply

  • 灭绝师太

    灭绝师太2018-04-27 10:24:44

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

    reply
    2
  • 刨冰加热

    Thank you, teacher

    刨冰加热 · 2018-04-27 10:25:54
    灭绝师太

    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

    灭绝师太 · 2018-04-27 10:30:48
  • oswell

    oswell2018-04-26 15:10:38

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

    reply
    1
  • 刨冰加热

    OK, thank you~

    刨冰加热 · 2018-04-27 10:26:04
  • PHP中文网

    PHP中文网2018-04-26 14:43:58

    Set the border margin to 0

    reply
    1
  • 刨冰加热

    Is the table border margin set to 0?

    刨冰加热 · 2018-04-26 14:46:12
  • Cancelreply