返回html cs......登陆

html css盒子模型

Jmmmm2019-04-27 16:11:11260
盒子模型
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>盒子模型</title>
    <style>
 *{
 padding: 0;
 margin: 0;
        }
 #top{
 width: 500px;
 height: 500px;
 border: 2px dashed darkcyan;
 background-color: lightcoral;
        }
 #content{
 width: 220px;
 height: 220px;
 border: 5px dashed black;
 margin-top: 25px;
 margin-left: 25px;
        }
 </style>
</head>
<body>
    <div id="top">
        <div id="content">
            <p>盒子模型</p>
            <p>边框border</p>
            <p>内边距padding</p>
            <p>外边距margin</p>
        </div>
    </div>
</body>
</html>


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送