如何使 html 表格的内容与任何屏幕分辨率兼容?



我有以下带有<table>的html代码,该代码也将显示在移动设备中并且遇到麻烦。如果我在此表中插入大量内容,在分辨率小(屏幕小(的设备中,内容不会完整显示(将剪切我网站的页脚(。

那么如何根据下面的代码显示我网站的所有内容呢?

<html>
<body bgcolor="black">
<table width="100%" height="100%">
<tr>
<td align="center" valign="center">
<br />
<img width="100" height="100" src="myimage.png"> <br /><br />
<b><font color="white">My text...</font></b> <br />
<b><font color="white">My text...<p id="randomize"></p></font></b>
<b><font color="white">My text...<p id="lbpath"></p></font></b>
<br />
<img width="150" height="150" src="myimage2.gif"> <br />
<center>
<font color="yellow"><b>
<p id="label">My text...</p>
</b></font>
</center>
<b><font color="red">My text...</font></b><font color="white">My text...</font></td>
</tr>
</table>
</body>
</html>

设置表格高度是否有必要?

<table width="100%">

必须正常工作

相关内容

最新更新