返回制作一个flo......登陆

制作一个float浮动效果的样式

@夜澜风2019-04-04 17:18:36203

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>制作一个浮动效果</title>

<style type="text/css">

*{margin:0;padding:0;}

.box{width: 400px;height: 400px;margin: 0 auto;text-align: center;}

.box li{float: left;width: 98px;height: 30px;background: #ccc;list-style: none;line-height: 30px;margin: 0 1px;}

.box_min{width: 400px;height: 390px;background: red;}

</style>

</head>

<body>

<div>

<ul>

<li>1</li>

<li>2</li>

<li>3</li>

<li>4</li>

</ul>

<div></div>

</div>

</body>

</html>


最新手记推荐

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

全部回复(0)我要回复

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