微信导航滑动门效果

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        body {
            background: url("img/wx.jpg") repeat-x;
        }

        .nav a {
            display: inline-block;
            line-height: 33px;
            text-align: center;
            text-decoration: none;
            background: url("img/to.png") no-repeat;
            color: #fff;
            padding-left: 16px;
        }

        .nav span {
            display: inline-block;
            background: url(img/to.png) no-repeat right;
            padding-right: 15px;

        }

        .nav a:hover, .nav a:hover span {
            background-image: url(img/ao.png);
        }

    </style>
</head>
<body>
<ul class="nav">
    <li>
        <a href="#">
            <span>首页</span>
        </a>
    </li>
</ul>
</body>
</html>

 

posted @ 2018-10-30 08:42  Sky_Ice  阅读(454)  评论(0编辑  收藏  举报