css 例子

This commit is contained in:
asd
2021-01-18 18:11:23 +08:00
parent dd41f144fc
commit 1c003714c3
43 changed files with 595 additions and 18 deletions

44
csspress/demo/float1.html Normal file
View File

@@ -0,0 +1,44 @@
<html>
<head>
<meta charset="UTF-8">
<title>
盒子模型
</title>
<style>
*{
margin:0;
padding:0;
}
body{
text-align:center;
}
div{
width:200px;
height:200px;
margin:0 auto;
}
#div1{
margin-top:10px;
background:red;
}
#div11{
margin-top:20px;
width:0;
height:0;
background:yellow;
}
#div12{
margin-top:30px;
width:50px;
height:50px;
background:blue;
}
</style>
</head>
<body>
<div id="div1">
<div id="div11"></div>
<div id="div12"></div>
</div>
</body>
</html>