发表于: 2019-02-21 10:07:05

1 825


今天完成的事情:重新回顾了任务一,发现要用外联css的方式实现,就改了一下

html如下

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" type="text/css" href="../css/mytask1.css"/>

<body>

<div class="wrap">

<div class="square"></div>

<div class="square"></div>

<div class="square"></div>

<div class="square"></div>

<div class="square"></div>

<div class="square"></div>

<div class="square"></div>

<div class="square"></div>

<div class="square"></div>

</div>

</body>

</html>

css如下

* {margin:0; padding:0;}

.square {

float: left;

background-color: orange;

width: 31%;

padding-bottom: 31%;

margin: 1%;

border-radius: 10%;

}

明天计划的事情:学习任务二

遇到的问题:相对路径不太懂上网百度学会了


返回列表 返回列表
评论

    分享到