我正在使用 960.gs 来进行简单页面的布局,但是很难为我正在使用的 DIV 强制执行最大高度。考虑以下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" media="all" href="reset.css" />
<link rel="stylesheet" type="text/css" media="all" href="text.css" />
<link rel="stylesheet" type="text/css" media="all" href="960.css" />
</head>
<body>
<div id="topContainer" class="container_12">
<div style="height:200; overflow:hidden" class="grid_10">
<!-- lots of text or a large image-->
</div>
<div class="grid_2"> <!-- rhs col--> </div>
</div>
如何为此 div 强制执行特定高度?我曾尝试在顶级容器上设置“高度”属性,但这也无济于事。
感谢您的任何帮助!