css中的浮动与清空

原创2019-06-07 17:09:1579
摘要:<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=ul, initial-scale=1.0"><meta ht

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=ul, initial-scale=1.0">

<meta http-equiv="X-UA-Compatible" content="ie=edge">

<title>css中的浮动与清空</title>

<style>

ul li{

list-style: none;

width: 100px;

line-height: 40px;

text-align: center;

margin: 10px 10px;

background-color: aquamarine;

float: left;

}

.clear{

clear:both;

}

.s5{

width: 500px;

height: 500px;

background-color: blanchedalmond;

}

</style>

</head>

<body>

<ul>

<li>html</li>

<li>css</li>

<li>script</li>

<li>php</li>

<li>mysql</li>

</ul>

<div class="clear"></div>


<div class="s5"></div>

</body>

</html>


批改老师:查无此人批改时间:2019-06-10 09:42:27
老师总结:完成的不错。浮动在移动端用到的比较多。继续加油。

发布手记

热门词条