<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="Styles/test.css" rel="Stylesheet" type="text/css" />
<style type="text/css">
html, body
{
width: 100%;
height: 100%;
}
</style>
<script type="text/javascript" src="Scripts/jquery-1.4.1.js"></script>
<script type="text/javascript">
window.onresize = window.onload = function () {
$("#client").height($("body").height() - $("#top").height());
while (($("#right").width() + $("#left").width()) != $("body").width()) {
$("#right").width($("body").width() - $("#left").width());
}
}
</script>
</head>
<body>
<div id="content" style="height: 100%; width: 100%; background-color: Green;">
<div id="top" style="height: 50px; width: 100%; background-color: Red;">
</div>
<div id="client" style="width: 100%; background-color: Blue;">
<div id="left" style="width: 200px; height: 100%; float: left; background-color: Fuchsia;">
</div>
<div id="right" style="height: 100%; float: right; background-color: Gray">
</div>
</div>
</div>
</body>
</html>
html test
最新推荐文章于 2024-09-26 07:41:06 发布