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

css中的浮动

Yzw2019-03-05 23:14:46192

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>css中的浮动</title>

<style type="text/css">

ul li{list-style: none;width: 100px;height: 50px;line-height: 50px;text-align: center;background-color: pink; margin: 0px 1px;float: left;}

.box1{width: 200px;height: 50px;background-color: #ccc;float: left;}

.box{clear: both;}

</style>


</head>

<body>

<ul>

<li>php</li>

<li>css</li>

<li>浮动</li>

</ul>

<div class="box"></div>

<div class="box1">2</div>

<div class="box1">3</div>

</body>

</html>


最新手记推荐

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

全部回复(0)我要回复

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