如何在 Internet Explorer 中的全高表格中制作全高单元格 [英] how to make full height cell in full height table in Internet Explorer
本文介绍了如何在 Internet Explorer 中的全高表格中制作全高单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有下一个 html 代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><头><style type="text/css">html {height:100%;}body {height:100%;margin:0;}h1 {form-size:20px;margin:0;padding:20px;}</风格>头部><身体><table style="width:100%;height:100%"><tr><td><div style="background-color:#f00;"><h1>这个文本应该使这个单元格的高度</h1>
</td></tr><tr style="height:100%;"id="行"><td style="background-color:#c0c;"><div style="height:100%;width:100%;background-color:#00f;color:#fff;">此单元格应占用表格的所有未使用空间
</td></tr><tr><td><div style="background-color:#0f0;"><h1>此文本的高度应为<br>该单元格
</td></tr>