css 例子
This commit is contained in:
37
csspress/demo/boxsize.html
Normal file
37
csspress/demo/boxsize.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
<style>
|
||||
.box{
|
||||
width:1000px;
|
||||
height:300px;
|
||||
background: gold;
|
||||
}
|
||||
.box1{
|
||||
width:50px;
|
||||
height: 50px;
|
||||
background:red;
|
||||
}
|
||||
.box2{
|
||||
width:500px;
|
||||
height:500px;
|
||||
background: blue;
|
||||
}
|
||||
.box3{
|
||||
background:pink;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="box">
|
||||
<div class="box1">aaa</div>
|
||||
<span class="box2">bbb</span>
|
||||
<span class="box3">cccc</span>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user