本文介绍了如何使用表单和图像减少表行高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个有两行的表。在第一行是一个文本框,在

中,第二行是图像。我已将表格cellpadding设置为0并且

cellspacing为0.

该表格在
$ b的顶部和底部的行中留出了额外的空格$ b图片和图片。我需要将行的高度设置为与文本框和图像相同的

。我该怎么做呢?我甚至尝试过设置桌子高度和所有< td>的
。和< tr>标签为1

但是没有成功。


谢谢


John

I have a table with two rows. On the first row is a text box and in
the second row is an image. I have set the table cellpadding to 0 and
cellspacing to 0.
The table is leaving extra spaces in the rows on the top and bottom of
the picture and image. I need to make the height of the rows to be the
same as the textbox and image. How do I do this? I have tried even
setting the height of the table and all the <td> and <tr> tags to 1
but have not been succesful.

Thank you

John

推荐答案




你试过< img src =" img.jpg"风格= QUOT;显示:块;"> ?

那可能会摆脱图像下面的空间,不要知道为什么你上面有空间。你有网址吗?


-

Els


Sonhos vem。 Sonhos v?o。 Orestoébritfeito。

- Renato Russo -



Have you tried <img src="img.jpg" style="display:block;"> ?
That might get rid of the space underneath the image, don''t
know why you have space above it. Do you have a url?

--
Els

Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -





你试过< img src =" img.jpg"风格= QUOT;显示:块;"> ?

那可能会摆脱图像下面的空间,不要知道为什么你上面有空间。你有网址吗?


-

Els


Sonhos vem。 Sonhos v?o。 Orestoébritfeito。

- Renato Russo -



Have you tried <img src="img.jpg" style="display:block;"> ?
That might get rid of the space underneath the image, don''t
know why you have space above it. Do you have a url?

--
Els

Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -





我永远不会有你描述的那种问题,因为我不打算开始使用

来进行表格设计。也许你的网页真正的问题

难度是桌面设计...


DU



I never have that sort of problem you describe because I do not resort
to table-design to begin with. Maybe the real issue with your webpage
difficulty is table design...

DU


这篇关于如何使用表单和图像减少表行高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 01:46