html和css写QQ会员页面导航

目录

1、css代码

2、html代码

效果图


1、css代码

css 复制代码
<style>
        * {
            padding: 0;
            margin: 0;
            list-style: none;
            text-decoration: none;
        }

        div {
            margin: 30px auto;
        }

        li {
            float: left;
            height: 60px;
            background-color: rgb(102, 102, 102);
            line-height: 40px;

        }

        img {
            height: 100%;
            margin-right: 40px;
            margin-left: 40px;
        }

        a {
            display: block;
            height: 40px;
            text-align: center;
            color: white;
            margin-top: 15px;
            margin-right: 30px;
            font-size: 12px;
        }

        a:hover {
            color: rgb(20, 20, 224);
        }

        .login {
            border: 1px solid rgb(192, 170, 96);
            width: 70px;
            height: 30px;
            border-bottom-left-radius: 15px;
            border-top-left-radius: 15px;
            border-bottom-right-radius: 15px;
            border-top-right-radius: 15px;
            color: rgb(192, 170, 96);
            margin-top: 20px;
            line-height: 30px;
            font-size: 14px;

        }

        .huiyuan {
            width: 120px;
            height: 30px;
            background-color: rgb(250, 214, 92);
            border-bottom-left-radius: 15px;
            border-top-left-radius: 15px;
            border-bottom-right-radius: 15px;
            border-top-right-radius: 15px;
            color: rgb(161, 115, 19);
            font-weight: 700;
            margin-top: 20px;
            line-height: 30px;
            margin-left: -26px;

        }

        .login:hover {
            color: rgb(192, 170, 96);

        }

        .huiyuan:hover {
            color: rgb(161, 115, 19);

        }

    
    </style>

2、html代码

html 复制代码
<div>
        <ul>
            <li><img src="./img/logo.png" alt=""></li>
            <li><a href="">功能特权</a></li>
            <li><a href="">游戏特权</a></li>
            <li><a href="">生活特权</a></li>
            <li><a href="">会员活动</a></li>
            <li><a href="">成长体系</a></li>
            <li><a href="">年费专区</a></li>
            <li><a href="">超级会员</a></li>
            <li><a href="" class="login">登录</a></li>
            <li><a href="" class="huiyuan">开通超级会员</a></li>
        </ul>

    </div>

效果图

相关推荐
一个打工仔的笔记1 天前
使用css实现打开抽屉效果(css过渡动画)
css
fruge1 天前
设计稿还原技巧:解决间距、阴影、字体适配的细节问题
前端·css
BBB努力学习程序设计1 天前
了解响应式Web设计:viewport网页可视区域
前端·html
kuilaurence1 天前
CSS `border-image` 给文字加可拉伸边框
前端·css
顾安r1 天前
11.14 脚本网页 青蛙过河
服务器·前端·python·游戏·html
xiangxiongfly9152 天前
CSS link标签
前端·css
十年磨一剑~2 天前
html+js开发一个测试工具
javascript·css·html
爱吃巧克力的程序媛2 天前
将qt界面中加载css或者qss样式
开发语言·css·qt
汪汪队立大功1232 天前
JavaScript是怎么和html元素关联起来的?
开发语言·javascript·html