css如何确定div的高度?

html-css014

css如何确定div的高度?,第1张

用frameset写,这样适应整个浏览器

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">

<title>无标题文档</title>

</head>

<frameset name="bodyFrame" class="bodyFrame" rows="100,*,100" frameborder="no" border="0" scrolling="no" framespacing="0" noresize="noresize">

<frame src="Top.htm" name="TopFrame" scrolling="no" noresize="noresize" />

<frame src="conten.htm" name="contenFrame" scrolling="no" noresize="noresize" />

<frame src="foot.htm" name="footFrame" scrolling="no" noresize="noresize" />

</frameset>

</html>

<div style="max-height:300pxwidth:300pxborder:1px solid #cccoverflow-y:autopadding-bottom:10px"><p>这是一个div</p></div>