返回导航浮动练习...登陆

导航浮动练习

CY2019-02-13 14:33:34265

<!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>

*{margin: 0;padding: 0;}

.head{

width: 100%;background-color: #ccc;

height: 40px;

}

.main{

width: 70%;height: 40px;background-color: cornflowerblue;

margin: 0 auto;

}

ul li{

list-style: none;

height: 40px;width: 100px;margin: 0 5px;

float: left;background-color: bisque;

text-align: center;line-height: 40px;

}

.php a{

height: 40px;width: 200px;margin: 3px;float: left;

background-color: blueviolet;display: none;

}

.php:hover a{

display: block;

}

</style>

</head>

<body>

<div class="head">

<div class="main">

<ul>

<li>html</li>

<li class="php">php

<a>php中文网学习</a>

<a>php中文网学习</a>

<a>php中文网学习</a>

</li>

<li>js</li>

<li>jq</li>

<li>css</li>

</ul>

</div>

</div>

</body>

</html>


最新手记推荐

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

全部回复(0)我要回复

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