发表于: 2019-06-04 21:10:08

1 785


今天学习了github ,看CSS外边距 ,CSS引入方式, css单位em和px的区别。

提交了任务一并根据任务要求把页联CSS改为了外联是CSS代码如下:

<!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>九宫格</title>
<link rel="stylesheet" type="text/css" href="CCSS.css">
<style>
</style>
</head>
<body>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</body>
</html>


div{
float: left;
width:30%;
background-color:orange;
padding-bottom: 30%;
margin:1.6%;
border-radius:5%;
}  

还有几天看任务三的知识有了大致思路如图

<!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>任务二</title>
<link rel="stylesheet" type="text/css" href="body.css">

<style type="text/css" >
.body1{
background-color:#68cdd5;
}
.div1{
height:50px;
width:50px;
background-color:black
}
</style>
</head>
<body class="body1">
<div class="div1"></div>


</body>
</html>


明天争取做出初步效果图。

收获颇多就不细说了。







返回列表 返回列表
评论

    分享到