返回CSS浮动案例......登陆

CSS浮动案例以及效果截图

高斯林2019-02-17 10:34:58252

<!DOCTYPE html>

<head>

<meta charset="utf-8">

<title>xxx</title>

<link rel="shortcut icon" type="image/x-icon" href="images/logo.png">

<link rel="stylesheet" type="text/css" href="css/index.css">

<style>

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

.mulu{width:100px;height:30px;line-height:30px;background-color:pink;float:left;margin:0px 1px;text-align:center;}


.clear{clear:both;}

</style>

</head>

<body>

<ul>

<li>导航1</li>

<li>导航2</li>

<li>导航3</li>

<li>导航4</li>

</ul>

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

<div class="mulu"><span>子菜单1</span></div>

<div class="mulu"><span>子菜单2</span></div>

<div class="mulu"><span>子菜单3</span></div>

<div class="mulu"><span>子菜单4</span></div>


</body>

</html>

效果如下:

微信图片_20190217103341.png

最新手记推荐

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

全部回复(0)我要回复

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