8css 盒子模型

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div {
            width:200px;
            height:200px;
            border-width:5px;
            border-style:solid;
            border-color:pink;
            padding-left:30px;
            padding-top:50px;
            padding-right:30px;
            padding-bottom: 50px;
        margin-left:auto;
        margin-right:auto;

    
        }
    </style>
    
</head>
<body>
    <div>王者农药</div>
</body>
</html>

css第一句话

* {
padding: 0;
margin:0;
}

 

8css 盒子模型

上一篇:转 mysql mysql命令行中执行sql的几种方式总结


下一篇:css-浮动/清除float/overflow/vertical-align