返回 css中的浮动...... 登陆

css中的浮动与清空

白守 2019-06-07 17:09:15 147

<!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>


最新手记推荐

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

全部回复(0)我要回复

暂无评论~
  • 取消 回复 发送
  • PHP中文网