例如:<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>CSSBBS新手教程第一课</title>
<style>
div{ width:100px; height:100px; border:1px solid #000; float:left; background:#99FF00; margin-left:10px;}
.css{ background:#FFFF00}
#css{ background:#00FFFF}
</style>
</head>
<body>
<div>直接div</div>
<div class="css">.css</div>
<div id="css">#css</div>
</body>
</html>我修改运行以后就框框的颜色变了其他都没变?不知道真正的区别,通俗点啊~我不太懂呵呵谢谢