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>

效果图

相关推荐
tiandyoin1 天前
给 MHTML 添加滚动条.mhtml
前端·chrome·html·mhtml
鸢尾掠地平1 天前
如何制作一个简单的学习教务系统?
css·学习·css3
Never_Satisfied1 天前
在JavaScript / HTML中,HTML元素自定义属性使用指南
开发语言·javascript·html
李少兄1 天前
CSS clip-path:前端开发中的裁剪技术
前端·css
_OP_CHEN1 天前
【前端开发之HTML】(二)HTML 常见标签(上):从入门到实战,搞定网页基础排版!
前端·css·html·前端开发·网页开发·html标签
幻影星空VR元宇宙1 天前
9D VR体验馆设备多少钱的投资分析与运营策略探讨
css·百慕大冒险·幻影星空
lkbhua莱克瓦241 天前
CSS盒子模型:网页布局的基石与艺术
前端·css·笔记·javaweb
♩♬♪.1 天前
HTML学校官网静态页面
前端·css·html
Never_Satisfied1 天前
在JavaScript / HTML中,cloneNode()方法详细指南
开发语言·javascript·html
hxjhnct1 天前
CSS 伪类和伪元素
前端·javascript·css