返回下拉菜单案例...登陆

下拉菜单案例

lws2019-04-08 05:55:51115

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>html+css</title>

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

<link rel="stylesheet" type="text/css" href="css/font-awesome-4.7.0/css/font-awesome.min.css">

</head>

<body>

<div>

         <div>

             <div>

                <a>中国大陆<i class="fa fa-angle-down"></i>

                    <ul>

                       <li>香港</li>

                       <li>台湾</li>

                    </ul>

                </a>

                <a>亲,请登录</a>

                <a>免费注册</a>

                <a>手机逛淘宝</a>

             </div>

             <div></div>

         </div>

         <div></div>

</div>

</body>

</html>

//css部分

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

.head{width: 100%;height: 40px;background: #f5f5f5}

a{text-align: none;font-size: 14px;}

.clean{clean:both;}

.content{width: 1000px; height: 40px;margin: 0 auto;}

.content_left{height: 40px;display:block; float: left;}

.content_left a {line-height: 40px; position: relative;display: inline-block;}

.content_left a:hover{color: pink;}

.content_left ul{display: none;margin-top: 0px;}

.content_left a:hover ul{display: block;position: absolute;width: 100px;}

.content_left ul li{height: 30px;}

.content_left ul li:hover{background: #f5f5f5}

li{list-style: none;}



.content_right{width:600px;height: 40px;float: right;;background: pink;}


最新手记推荐

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

全部回复(0)我要回复

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