Home > Web Front-end > HTML Tutorial > Please tell me how to set the minimum height of the table. Setting min-height in tr is useless_html/css_WEB-ITnose

Please tell me how to set the minimum height of the table. Setting min-height in tr is useless_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:13:06
Original
3287 people have browsed it

RT


Reply to discussion (solution)

It seems that the min-height style of table elements (including table, tr, td) is only available in IE Only valid under browser. However, for the table, you only need to set the height, because the table element content will automatically "expand" when it exceeds the set height.

<style type="text/css">table {	height:1000px;}td {	border:1px solid #CCC;}</style><table>	<tr>    	<td> </td>    </tr>    <tr>    	<td> </td>    </tr></table>
Copy after login

NO Does the poster use IE6? ? ? This is not supported. It seems like

No, too many words will leak out of the table. It seems that the min-height style of table elements (including table, tr, td) is only valid under the IE browser. However, for the table, you only need to set the height, because the table element content will automatically "expand" when it exceeds the set height.
HTML code