返回 小案例!案例不...... 登陆

小案例!案例不限!!

营养快线 2019-05-28 15:22:25 1935

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>CSS 浮动属性</title>

<style type="text/css">

ul li{list-style: none; width: 100px;height: 40px; line-height: 40px;text-align: center;background: #CCC;margin:5px 2px ;float: left;}

#float {width: 200px;height: 200px;background: green;float: left;}

#clear{clear:both;}

</style>

</head>

<body>

<ul>

<li>html</li>

<li>css</li>

<li>JavaScript</li>

<li>jQuery</li>

<li>php</li>

</ul>

<div id="clear"></div>

<div id="float">div1</div>

<div id="float">div2</div>

<div id="float">div3</div>

</body>

</html>


最新手记推荐

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

全部回复(0)我要回复

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