<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>WebBuilder</title>
<style type="text/css">
#left{
height: 300px;
width: 120px;
float: left;
background-color: #f99;
}
#right{
height: 300px;
width: 120px;
float: right;
background-color: #FF9999;
}
#main{
height: 300px;
margin: 0 120px;
background-color: #cc3;
}
</style>
</head>
<body>
<div id="left">zuo</div>
<div id="right">you</div>
<div id="main">zhong</div>
</body>
</html>
在div标签中如果把id=“right”换成main main换成right为什么所显示的界面与原来的就不同了!
A一城池