返回Float浮动......登陆

Float浮动导航栏

忆汐旧梦2019-06-23 16:31:3247

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta http-equiv="X-UA-Compatible" content="ie=edge">

<title>浮动导航条</title>

<style type="text/css">

*{margin: 0px; padding: 0px;}

ul li{

list-style: none;

width: 120px;

height: 30px;

background-color: black;

color: aliceblue;

line-height: 30px;

text-align: center;

margin: 1px 0.5px;

float: left;

}

.clear{

clear: both;

}

.box{

width: 120px;

height: 50px;

background-color: royalblue;

color: aliceblue;

line-height: 50px;

text-align: center;

margin: 1px 0.5px;

float: left;

}

</style>

</head>

<body>

<ul>

<li>PHP</li>

<li>JavaScript</li>

<li>jQuery</li>

<li>VUS</li>

<li>Laravel</li>

</ul>

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

<div class="box">导航1</div>

<div class="box">导航2</div>

<div class="box">导航3</div>

<div class="box">导航4</div>

<div class="box">导航5</div>

</body>

</html>



最新手记推荐

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

全部回复(0)我要回复

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