Javaweb(三)DIV+CSS布局练习
三行两列居中高度自适应
三行两列居中高度自适应就是要求整个网页内容居中,第一行DIV固定高度且居顶端显示,第三行DIV固定高度且居底端显示,中间DIV根据内容的变化高度自适应。
HTML文件中的代码:
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
@import url("myFirst.css")
</style>
</head>
<body>
<div class="top">
header
</div>
<div class="contian