22222

22222

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网站导航</title>
    <style>
        .nav {
            text-align: center;
        }
        .nav a {
            display: inline-block;
            width: 120px;
            height: 50px;
            line-height: 50px;
            color: #fff;
            text-decoration: none;
            background-image: url(imges/bg.jpg);
        }
        .nav a:hover {
            background-image: url(imges/bgc.jpg);
        }
    </style>
</head>
<body>
    <div class="nav">
        <a href="#">网站导航</a>
        <a href="#">网站导航</a>
        <a href="#">网站导航</a>
        <a href="#">网站导航</a>
        <a href="#">网站导航</a>
        <a href="#">网站导航</a>
    </div>
</body>
</html>

 

上一篇:导航栏简单实现


下一篇:今日总结:框架