当前位置:网站首页>A tab Sina navigation bar

A tab Sina navigation bar

2022-07-05 01:49:00 dengfengling999

<!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> Sina navigation </title>
    <style>
        .nav {
            height: 41px;
            border-top: 3px solid #ff8500;
            border-bottom: 1px solid #edeef0;
            background-color: #fcfcfc;
            line-height: 41px;
            /*  Center text vertically  */

        }

        .nav a {
            display: inline-block;
            /*  Inline block element  */
            height: 41px;
            padding: 0 20px;
            font-size: 12px;
            color: #4c4c4c;
            text-decoration: none;
        }

        .nav a:hover {
            background-color: #eee;
            color: #ff8500;
        }
    </style>
</head>

<body>
    <div class="nav">
        <a href="#"> Sina navigation </a>
        <a href="#"> Mobile Sina </a>
        <a href="#"> Mobile client </a>
        <a href="#"> Microblogging </a>
        <a href="#"> Sina Guide </a>
    </div>
</body>

</html>

result :

When the mouse clicks : 

 

 

 

原网站

版权声明
本文为[dengfengling999]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202141011559958.html