您的位置:首页 > Web前端 > HTML

Html的几个小技巧

2010-06-08 09:02 351 查看
1.Table的高度为100%,随屏幕变化而变化

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<link href="common.css" rel="stylesheet" type="text/css" />
</head>

<body> <div style=" clear:both; height:100%; width:100%;">
<table width="100%" height="100%" border="1">
<tr>
<td> </td>
<td width="980" valign="top"><table width="100%" height="100%" border="1">
<tr>
<td height="18">1258 </td>
</tr>
</table></td>
<td> </td>
</tr>
</table></div>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: