位置改变样式就变了
<!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=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{margin:0px; padding:0px;}
.concent{border:1px solid #0F0;padding:44px 15px 15px; width:730px;}
.book{background:url(case2/images/t_book.gif) no-repeat;background-color:#CCC;}
img{margin:12px 18px; border:1px solid #CCC;}
</style>
</head>
<body>
<div class="concent book">
<!--<ing>是行级元素所以每个标签不单独占行-->
<img src="case2/images/book1.jpg" width="80" height="80"/>
<img src="case2/images/book2.jpg" width="80" height="80"/>
<img src="case2/images/book3.jpg" width="80" height="80"/>
<img src="case2/images/book4.jpg" width="80" height="80"/>
<img src="case2/images/book5.jpg" width="80" height="80"/>
</div>
</body>
</html>
为什么#CCC;这个属性值放在content中颜色就显示不出来,而放在book中就显示出来了