css实现简单选项卡


        .box{
            display: block;
            height: 50px;
        }
        .box li{
            display: block;
            list-style: none;
            float: left;
        }
        .box li a{
            display: block;
            background-color: #2aabd2;
            height: 50px;
            width: 150px;
            text-align: center;
            line-height: 50px;
            font-size: 25px;
            text-decoration: none;
        }
        .drop-box{
            display: none;
            border: solid 1px black;
            width: 448px;
            height: 100px;
        }
        .box li a:hover{
            background-color: #4cae4c;
        }
        .box li :hover .drop-box{
            display: block;
        }
css实现简单选项卡_第1张图片
Tab.gif

你可能感兴趣的:(css实现简单选项卡)