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>
<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>
相关文章推荐
- 关于HTML的几个技巧
- 收集几个Objective-C的HTML解析库
- 基于ajax html实现文件上传技巧总结
- HTML表格边框的设置小技巧-表格
- html需要掌握的几个全局属性
- html&js技巧 ---摘自sdlcn的专栏
- HTML table技巧
- Android开发技巧——TextView加载HTML的图片及代码显示问题
- cxGrid使用技巧 转载自http://topic.csdn.net/t/20060106/09/4500997.html#
- java进行debug的几个小技巧
- 分享7个超实用的Emmet(zen coding)HTML代码使用技巧
- 转载:提升SQL Server程序员工作效率的几个技巧
- 用CSS/JS技巧优化HTML页面加载速度
- 几个你可能没有注意到的Windows XP技巧
- 一、HTML和CSS基础--开发工具--Sublime前端开发工具技巧介绍
- HTML教程-HTML技巧-层的高级应用
- 史上最全Html和CSS布局技巧
- 【转】技巧:使用User Control做HTML生成
- Mono ASP.NET 上几个性能调优技巧
- Web Essentials之HTML和CSS操作技巧