导航栏附带动画效果

Original 2019-01-13 05:00:06 267
abstract:<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>导航栏</title>    <link rel="styles

<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>导航栏</title>
   <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
   <style>
*{
    margin: 0;
    padding: 0;
       }
a{
    text-decoration: none;
    font-size: 14px;
    font-family: Consolas, "Liberation Mono", Courier, "微软雅黑";
    color: #333333;
     }
       .header{
width: 100%;
height: 40px;
background-color: #eaeff4;
       }
       .nav{
width: 70%;
height: 40px;
line-height: 40px;
margin: 0 auto;
       }
li{
padding: 0 10px;
list-style: none;
display: inline-block;
transition: 0.2s;
       }
li:hover {
background-color: #ffffff;
border-bottom: 2px solid #00BDEF;
       }
       .left li{
float: left;
       }
       .right li{
float: right;
       }
</style>
</head>
<body>
<div class="header">
   <div class="nav">
       <ul class="left">
           <li><a href=""> <i class="fa fa-quora"> </i> 探索</a></li>
           <li><a href="">题库 <i class="fa fa-sort-desc"></i> </a></li>
           <li><a href="">竞赛 <i class="fa fa-sort-desc"></i> </a></li>
           <li><a href="">阅读</a></li>
           <li><a href="">社区</a></li>
           <li><a href="">商店</a></li>
       </ul>
       <ul class="right">
           <li><a href="">登陆</a></li>
           <li><a href="">注册</a></li>
       </ul>
   </div>
</div>
<div style="clear: both;"></div>
</body>
</html>

演示地址 -> http://47.107.64.136/CSS/1/

Correcting teacher:天蓬老师Correction time:2019-01-13 09:54:00
Teacher's summary:效果相当的酷炫, 鼠标划过, 很优雅很从容的出现下划线,并背景变化, 这些简单的动画,可以让你的页面的用户体验上升一个档次, 不错的

Release Notes

Popular Entries