JAVA前端———CSS练习—QQ会员网页头部练习—京东登录界面

QQ会员网页头部练习

 <style>
        .nav{
            background-color: black;
        }
        .tupian{
            margin-top: 50px;
            margin-left: 180px;
        }
        img{
            vertical-align:middle;
        }
        .nav-lianjie{
           display: inline-block;
            position: absolute;
            top: 42px;
            left: 366px;
        }
        a{
            color: white;
            margin-left: 20px;
            text-decoration: none;
        }
        a:hover{
            color: #ff150e;
        }
        .nav-denglu{
            display: inline-block;
            position: absolute;
            top: 35px;
            left: 1150px;
        }
        .nav-denglu a{
            display: inline-block;
            text-align: center;
            border-radius: 35px;
        }
        #fir {
            width: 80px;
            height: 40px;
            line-height: 35px;
            color: yellow;
            border: 1px yellow solid;
        }
        #fir:hover{
            background-color:lightpink;
            color: yellow;
        }
        #sec {
            width: 150px;
            height: 40px;
            line-height: 35px;
            color: yellow;
            border: 1px yellow solid;
        }
        #sec:hover{
            background-color: lightblue;
            color: yellow;
        }
    </style>
</head>
<body>
<div class="nav">
    <div class="nav-tupian">
        <a href="" class="tupian"><img src="qq会员.png" alt="QQ会员首页" width="140"></a>
    </div>
    <div class="nav-lianjie">
        <a href="">功能特权</a>
        <a href="">游戏特权</a>
        <a href="">生活特权</a>
        <a href="">装扮特权</a>
        <a href="">会员活动</a>
        <a href="">成长体系</a>
        <a href="">年费专区</a>
        <a href="">大王卡特权</a>
    </div>
    <div class="nav-denglu">
            <a href=""id="fir">登录</a>
            <a href=""id="sec">开通超级会员</a>
    </div>
</div>

京东登录界面

 <style>
        *{
            padding: 0;
            margin: 0;
        }
        img{
            vertical-align:middle;
        }
        #logo{
            margin-top: 27px;
            margin-left: 341px;
            vertical-align: center;
        }
        #logoziti{
            font:normal x-large "Arial";
            position: fixed;
            top: 40px;
            left: 520px;
            color: gray;
        }
        #banner{
            width: 1000px;
            margin: 0 auto;
        }
        #image{
            width: 1600px;
            height: 480px;
            background-color: #e93854;
        }
        .hezi{
            width: 350px;
            height: 300px;
            position: fixed;
            top: 150px;
            right: 280px;
            background-color: white;
        }
        .shang{
               width: 320px;
               height:35px;
               line-height: 45px;
               margin: 20px;
        }
        .zhong{
            width: 350px;
            height: 150px;
        }
        h2{
            font-size: 20px;
            font-weight: normal;
            color: lightslategrey;
        }
        .ZHUCE{
            float: right;
        }
        .wenben{
            margin: 20px;
            padding-top: 15px;
        }
        .Xia{
            width:300px;
            height: 45px;
            background: #e4393c;
            margin: 10px auto;
            text-align: center;
        }
        .DENGLU{
            font-size: 20px;
            color: white;
            line-height: 45px;
        }
        footer{
            text-align: center;
        }
        .xia{
            margin: 12px 310px;
            color: lightslategrey;
        }
        .copy{
            color: lightslategrey;
            font-size: small;
        }
        a{
            color: gray;
            font-size: small;
            text-decoration:none;
        }
        a:hover{
            color: #ff150e;
            text-decoration: underline;
        }
        a[class="zhuce"]{
            color: red;
        }
    </style>
</head>
<body>
<header>
    <img src="logo.png" id="logo"><span id="logoziti">欢迎登录</span>
</header>
<middle>
    <div>
        <div id="image">
            <div id="banner">
                <img src="banner.png"  width="990" height="400">
            </div>
            <div class="hezi">
                <div class="shang">
                    <h2>京东会员
                        <div class="ZHUCE"> <img src="icon5.jpg" >
                            <a href="" class="zhuce">立即注册</a></div></h2>
                </div>
                <div class="zhong">
                    <div class="wenben">
                        <img src="icon1.jpg" ><input type="text"  placeholder="   邮箱 / 用户名 / 已验证手机"
                                                     style="width:240px; height:34px;">
                    </div>
                    <div class="wenben">
                        <img src="icon2.jpg"><input type="password" style="width:240px;height:34px;">
                    </div>
                </div>
                <div class="Xia">
                        <a href="" ><span class="DENGLU">登 录</span></a>
                </div>
            </div>
        </div>
    </div>
</middle>
<footer>
    <div class="xia">
        <a href="">关于我们</a> &nbsp;|&nbsp;
        <a href="">联系我们</a> &nbsp;|&nbsp;
        <a href="">人才招聘</a> &nbsp;|&nbsp;
        <a href="">商家入驻</a> &nbsp;|&nbsp;
        <a href="">广告服务</a> &nbsp;|&nbsp;
        <a href="">手机京东</a> &nbsp;|&nbsp;
        <a href="">友情链接</a> &nbsp;|&nbsp;
        <a href="">销售联盟</a> &nbsp;|&nbsp;
        <a href="">京东社区</a> &nbsp;|&nbsp;
        <a href="">京东公益</a>&nbsp;|&nbsp;
        <a href="">English Site</a>
    </div>
    <div class="copy">Copyright©2004-2017 京东JD.com 版权所有</div>
</footer>
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值