<!DOCTYPE html PUBLIC“ - // W3C // DTD XHTML 1.0 Transitional // EN”“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns =“http :http ://www.w3.org/1999/xhtml“>
<head>
<meta http-equiv =”Content-Type“content =”text / html; charset = utf-8“/>
<title> CSS等高布局</ title>
<style type =“text / css”>
* {
margin:0;
填充:0;
}
#wrap {
overflow:hidden;
宽度:1000像素;
保证金:0汽车;
}
#left,#center,#right {
margin-bottom:-10000px;
填充底:10000px;
}
#left {
float:left;
宽度:250像素;
背景:#00FFFF;
宽度:500像素;
背景:#FF0000;
}
#right {
float:right;
宽度:250像素;
背景:#00FF00;
}
</ style>
</ head>
<body>
<div id =“wrap”>
<div id =“left”>
<p> left </ p>
<p> left </ p>
<p> p>
<p>左</ p>
<p>左</ p>
</ DIV>
<DIV ID = “中心”>
<p>中心</ p>
<p>中心</ p>
<p>中心</ p>
<p> center </ p
>
<p> center </ p>
<p> center <
中心</ p>
<p> center </ p>
<p> center </ p>
<center
>
<p> center </ p>
<p > center </ p>
</ div>
<div id =“right”>
<
p> right </ p>
<p> right </ p>
</ div>
</ div>
</ body>
</ html>
<html xmlns =“http :http ://www.w3.org/1999/xhtml“>
<head>
<meta http-equiv =”Content-Type“content =”text / html; charset = utf-8“/>
<title> CSS等高布局</ title>
<style type =“text / css”>
* {
margin:0;
填充:0;
}
#wrap {
overflow:hidden;
宽度:1000像素;
保证金:0汽车;
}
#left,#center,#right {
margin-bottom:-10000px;
填充底:10000px;
}
#left {
float:left;
宽度:250像素;
背景:#00FFFF;
宽度:500像素;
背景:#FF0000;
}
#right {
float:right;
宽度:250像素;
背景:#00FF00;
}
</ style>
</ head>
<body>
<div id =“wrap”>
<div id =“left”>
<p> left </ p>
<p> left </ p>
<p> p>
<p>左</ p>
<p>左</ p>
</ DIV>
<DIV ID = “中心”>
<p>中心</ p>
<p>中心</ p>
<p>中心</ p>
<p> center </ p
>
<p> center </ p>
<p> center <
中心</ p>
<p> center </ p>
<p> center </ p>
<center
>
<p> center </ p>
<p > center </ p>
</ div>
<div id =“right”>
<
p> right </ p>
<p> right </ p>
</ div>
</ div>
</ body>
</ html>