Home  >  Article  >  Web Front-end  >  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
WBOYOriginal
2016-06-24 12:13:063209browse

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>

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
080b747a20f9163200dd0a7d304ba388
table {
height:1000px;
}
td {
border:1px solid #CCC ;
}

chrome NO Does the original poster use IE6? ? ? This won’t support Sarah. It seems

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn