标签:color body ack add head w3c red css样式 tle
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="css盒模型.css">
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div>
</div>
<div>
</div>
</body>
</html>
css样式
div:first-child{
width:200px;
height:200px;
background-color: pink;
box-sizing: content-box;
/* 就是以前的盒模型 w3c*/
padding: 10px;
border:15px solid red;
}
div:last-child{
width:200px;
height: 200px;
background-color: purple;
padding: 10px;
box-sizing: border-box;
border: 15px solid red;
}
/*现在新的盒模型*/
标签:color body ack add head w3c red css样式 tle
原文地址:https://www.cnblogs.com/soyadios/p/11961082.html