html+css导航

Original 2019-04-08 05:32:26 232
abstract:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>html+css</title><link rel="stylesheet" type="text/css" href="css/css.c

<!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></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;}

.content_left a:hover{color: pink;}

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


Correcting teacher:天蓬老师Correction time:2019-04-08 09:26:04
Teacher's summary:如果再配一张图片, 效果会更好

Release Notes

Popular Entries