手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >div#sidebar{}与#sidebar div{}的区别介绍
div#sidebar{}与#sidebar div{}的区别介绍
摘要:overflow属性用法div#sidebar{background-color:blue;}#sidebardiv{background-...

<!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>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{}的区别介绍】相关文章:

CSS中em和px的区别

纯CSS代码实现翻页

div中class与id的区别及应用

div嵌套 img 空白解决方法

display:inline;与float:left;的用途

em与px的区别以及em特点和应用

CSS挂马及相应防范方法

css下clear both、left、right值的含义

页面制作如何用好border和clear

css中em px 区别你真的了解吗

精品推荐
分类导航