<!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" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>1</title>
<style>
#first{width: 50%; height: 200px; background: red; float: left}
#second{width: 50%; height: 200px; background: green; float: left;}
#three{width: 50%; height: 200px; background: gray; float: left;}
#third{width: 50%; height: 200px; background: yellow;float: left;}
</style>
</head>
<body>
<div id="first">我是1</div>
<div id="second">我是2</div>
<div id="three">我是3</div>
<div id="third">我是4</div>
</body>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>1</title>
<style>
#first{width: 50%; height: 200px; background: red; float: left}
#second{width: 50%; height: 200px; background: green; float: left;}
#three{width: 50%; height: 200px; background: gray; float: left;}
#third{width: 50%; height: 200px; background: yellow;float: left;}
</style>
</head>
<body>
<div id="first">我是1</div>
<div id="second">我是2</div>
<div id="three">我是3</div>
<div id="third">我是4</div>
</body>
</html>
first、second、three、third等id不能用1、2、3、4来替代,否则无法显示颜色。