复制代码
代码如下:
<!DOCTY PE ht ML P ub LIC "-//W3C//DTD XHTML 1.0 Trans IT ional//EN" "http://HdhCmsTestw3. org /TR/xhtml1/DTD/xhtml1 -t ransitional.dtd">
<html XM lns="http://HdhCmsTestw3.org/1999/xhtml">
<head>
< ;m eta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>overflow属性用法</title>
<style type="text/css">
div # sidebar { background-color:blue;
}
#sidebar div{ background-color: red ;
}
</style>
</head>
<body>
<div>
<div id="sidebar">我是蓝色
<div>我是 红色 </div>
</div>
</div></div></body>
</html>
总结
以上是 为你收集整理的 div#sidebar{}与#sidebar div{}的区别介绍 全部内容,希望文章能够帮你解决 div#sidebar{}与#sidebar div{}的区别介绍 所遇到的问题。
如果觉得 网站内容还不错, 推荐好友。
查看更多关于div#sidebar{}与#sidebar div{}的区别介绍的详细内容...