实现登录与注册界面(1号店)

 

 登陆界面

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style type="text/css">
            * {
                margin: 0;
                padding: 0;
            }

            .all {
                height: 600px;
                width: 1100px;
                margin: auto;
                border: 1px #DCDCDC solid;
            }

            .s {
                width: 300px;
                height: 20px;
                float: right;
                margin-top: 6px;
            }

            .header {
                width: 1100px;
                height: 100px;
                background-color: rgb(255, 255, 255);
                font-size: 12px;
                margin: auto;
                border: 1px #DCDCDC solid;
            }

            .a {
                display: inline-block;
                width: 130px;
                height: 20px;

            }

            .nei {
                display: inline-block;
                width: 85px;
                height: 20px;
                border: 1px #DCDCDC solid;
            }

            .header>img {

                margin-left: 30px;
                margin-top: 10px;
                vertical-align: middle;
            }

            .nei>img {
                vertical-align: middle;
            }

            .header a {

                text-decoration: none;
            }

            .right {

                width: 396px;
                height: 400px;
                float: right;
            }

            .righter {
                width: 350px;
                height: 300px;
                margin-top: 50px;
            }

            .left {
                width: 700px;
                height: 400px;
                float: left;
            }

            .left img {
                margin-left: 120px;
                margin-top: 20px;
            }

            .middle {
                width: 1100px;
                height: 400px;
                background-color: rgb(252, 252, 252);
            }

            .right span {
                margin-left: 40px;
                font-weight: bold;
                color: rgb(102, 102, 102);
            }

            .right a {
                text-decoration: none;
                margin-left: 145px;
                font-size: 12px;
            }

            .one input {

                margin-left: 40px;
                background-color: #FFFFFF;
                background: url(Image/icon_02.gif) no-repeat 20px 20px;
                background-position: 20px;
                height: 50px;
                width: 300px;
                border: #DCDCDC solid 1px;
            }

            .two input {
                margin-top: 15px;
                margin-left: 40px;
                background-color: #FFFFFF;
                background: url(Image/lock.png) no-repeat 20px 20px;
                background-position: 23px;
                height: 50px;
                width: 300px;
                border: #DCDCDC solid 1px;
            }

            .three input {
                margin-top: 20px;
                margin-left: 40px;

            }

            .three span {
                color: rgb(118, 118, 122);
            }

            .three {
                font-size: 13px;
                color: rgb(118, 118, 122);
            }

            .four input {
                margin-top: 15px;
                margin-left: 40px;
                height: 50px;
                width: 300px;
                border-radius: 3px;
                background-color: rgb(255, 60, 60);
                font-size: 16px;
                color: white;
                border: 0px;
            }

            .five p {
                margin-top: 15px;
                margin-left: 40px;
                font-size: 12px;
                color: rgb(118, 118, 122);
            }

            .right input::-webkit-input-placeholder {

                font-size: 16px;
                color: rgb(118, 118, 122);
            }

            .six img {
                margin-top: 15px;
                margin-left: 20px;
                width: 30px;
                height: 30px;
                vertical-align: middle;
            }

            .six span img {
                margin-left: 15px;
            }

            .six span {
                margin-left: 25px;
                font-size: 12px;
                color: rgb(118, 118, 122);
            }

            .eight img {
                width: 12px;
                height: 12px;
                vertical-align: middle;
                margin-left: 0;
            }

            .footer {
                width: 1100px;
                height: 100px;
                background-color: #FCFCFC;
                font-size: 12px;
                color: #000000;
                text-align: center;
                line-height: 15px;
            }
        </style>
    </head>
    <body>
        <div class="all">
            <div class="header"><img src="Image/loginlogo.jpg">
                <div class="s">
                    <div class="a"><span>您好,欢迎光临1号店!</span></div><a href="#">&nbsp;&nbsp;&nbsp;&nbsp;请登录</a>
                    <div class="nei">
                        <img src="./Image/runbun.png">帮助中心<img src="./Image/turnb.png">
                    </div>
                </div>
            </div>
            <div class="middle">
                <div class="left"><img src="Image/loadimg.jpg"></div>
                <div class="right">
                    <div class="righter">
                        <form action="#" method="get">
                            <span>1号店用户登录</span><a href="注册页面.html" target="_blank">注册账号</a><br />
                            <div class="one"><input type="text" name="username"
                                    placeholder="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;邮箱/手机/用户名"><br />
                            </div>
                            <div class="two"><input type="password" name="password"
                                    placeholder="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;密码">
                            </div>
                            <div class="three"><input type="checkbox"
                                    value="自动登录">自动登录<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;忘记密码?</span>
                            </div>
                            <div class="four"><input type="submit" value="登录"></div>
                            <div class="five">
                                <p>更多合作网站账号登陆</p>
                            </div>
                            <div class="six"><span><img src="Image/l_1.png"></span><img src="Image/l_2.png"><img
                                    src="Image/l_3.png"><img src="Image/l_4.png"><span>更多合作网站</span>
                                    <div class="eight"><img src="./Image/turnb.png"></span></div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="footer"><br />沪ICP备13044728号 | 合字B1.B2-20130004 | 营业执照<br /><br />
                Copyright&copy;1号店网上超市2007-2016, All Rights Reserved
            </div>
        </div>
    </body>
</html>

注册界面

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style type="text/css">
            .all {
                height: 680px;
                width: 1300px;
                margin: auto;
            }

            .s {
                width: 300px;
                height: 20px;
                float: right;
                margin-top: 5px;
            }

            .header {
                width: 1300px;
                height: 100px;
                background-color: rgb(255, 255, 255);
                font-size: 12px;
                margin: auto;
                border: 1px #DCDCDC solid;
            }

            .a {
                display: inline-block;
                width: 130px;
                height: 20px;
            }

            .nei {
                display: inline-block;
                width: 85px;
                height: 20px;
                border: 1px #DCDCDC solid;
            }

            .header>img {

                margin-left: 30px;
                margin-top: 10px;
                vertical-align: middle;
            }

            .nei>img {
                vertical-align: middle;
            }

            .header a,
            .c a {
                text-decoration: none;
            }

            .footer {
                height: 580px;
                width: 1300px;
                background-color: rgb(252, 252, 252);
            }

            .main {
                width: 400px;
                height: 550px;
                margin-left: 450px;
                background-color: rgb(252, 252, 252);
            }

            .main input {
                width: 360px;
                height: 60px;
                margin-top: 10px;
            }

            .a2 input {
                width: 200px;
                height: 60px;
                float: left;
            }

            .a3 input {
                width: 150px;
                height: 66px;
                float: left;
                margin-left: 10px;
                font-size: 16px;
                color: white;
                background-color: rgb(87, 86, 95);
                border: 0;
                font-weight: bold;
            }

            .b input {
                width: 360px;
                height: 60px;
                margin-top: 10px;
            }

            .c {
                margin-top: 15px;
                padding-left: 30px;
            }

            .d input {
                color: white;
                background-color: rgb(255, 60, 60);
                border: 0;
                font-size: 18px;
            }

            .e {
                font-size: 14px;
                text-align: center;
            }

            .z {
                padding-top: 20px;
                margin-bottom: 10px;
                font-size: 25px;
                text-align: center;
            }

            .main input::-webkit-input-placeholder {
                padding-left: 20px;
                font-size: 16px;
                font-weight: bold;
                color: rgb(118, 118, 122);
            }
        </style>
    </head>
    <body>
        <div class="all">
            <div class="header">
                <img src="Image/loginlogo.jpg">
                <div class="s">
                    <div class="a"><span>您好,欢迎光临1号店!</span></div><a href="#">&nbsp;&nbsp;&nbsp;&nbsp;请登录</a>
                    <div class="nei">
                        <img src="./Image/runbun.png">帮助中心<img src="./Image/turnb.png">
                    </div>
                </div>
            </div>
            <div class="footer">
                <div class="main">
                    <form action="#" method="get">
                        <div class="z">1号店注册</div>
                        <input type="text" placeholder="手机号">
                        <div class="a1">
                            <div class="a2"><input type="text" placeholder="手机号"></div>
                            <div class="a3"><input type="button" value="获取验证码"></div>
                        </div>
                        <div class="b"><input type="text" placeholder="密码"></div>
                        <input type="text" placeholder="确认密码">
                        <div class="c">点击注册,表示您同意一号店<a href="#">《服务协议》</a></div>
                        <div class="d"><input type="submit" value="同意协议并注册"></div>
                        <div class="e"><br />沪ICP备13044728号 | 合字B1.B2-20130004 | 营业执照<br /><br />
                            Copyright&copy;1号店网上超市2007-2016, All Rights Reserved</div>
                    </form>
                </div>
            </div>
        </div>
    </body>
</html>

  • 15
    点赞
  • 88
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
下面是制作1号店网站首页的HTMLCSS代码示例,供参考: HTML代码: ```html <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>1号店首页</title> <link rel="stylesheet" href="style.css"> </head> <body> <!-- 头部导航栏 --> <header> <nav> <ul> <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> </ul> </nav> </header> <!-- 搜索框 --> <div class="search"> <input type="text" placeholder="搜索商品"> <button>搜索</button> </div> <!-- 广告轮播 --> <div class="banner"> <img src="images/banner1.jpg" alt="banner1"> <img src="images/banner2.jpg" alt="banner2"> <img src="images/banner3.jpg" alt="banner3"> </div> <!-- 商品分类 --> <div class="category"> <ul> <li> <a href="#"> <img src="images/category1.jpg" alt="category1"> <span>服装鞋包</span> </a> </li> <li> <a href="#"> <img src="images/category2.jpg" alt="category2"> <span>美妆个护</span> </a> </li> <li> <a href="#"> <img src="images/category3.jpg" alt="category3"> <span>家居生活</span> </a> </li> <li> <a href="#"> <img src="images/category4.jpg" alt="category4"> <span>数码家电</span> </a> </li> <li> <a href="#"> <img src="images/category5.jpg" alt="category5"> <span>食品饮料</span> </a> </li> <li> <a href="#"> <img src="images/category6.jpg" alt="category6"> <span>母婴童装</span> </a> </li> </ul> </div> <!-- 新品推荐 --> <div class="new-products"> <h2>新品推荐</h2> <ul> <li> <a href="#"> <img src="images/product1.jpg" alt="product1"> <span>商品名称</span> <span class="price">¥99.00</span> </a> </li> <li> <a href="#"> <img src="images/product2.jpg" alt="product2"> <span>商品名称</span> <span class="price">¥99.00</span> </a> </li> <li> <a href="#"> <img src="images/product3.jpg" alt="product3"> <span>商品名称</span> <span class="price">¥99.00</span> </a> </li> <li> <a href="#"> <img src="images/product4.jpg" alt="product4"> <span>商品名称</span> <span class="price">¥99.00</span> </a> </li> </ul> </div> <!-- 优惠活动 --> <div class="promotion"> <h2>优惠活动</h2> <ul> <li> <a href="#"> <img src="images/promotion1.jpg" alt="promotion1"> </a> </li> <li> <a href="#"> <img src="images/promotion2.jpg" alt="promotion2"> </a> </li> <li> <a href="#"> <img src="images/promotion3.jpg" alt="promotion3"> </a> </li> </ul> </div> <!-- 底部 --> <footer> <p>版权所有 © 1号店</p> </footer> </body> </html> ``` CSS代码: ```css /* 全局样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; font-size: 14px; color: #333; } /* 头部导航栏样式 */ header { background-color: #333; height: 40px; line-height: 40px; } nav ul { list-style: none; text-align: center; } nav li { display: inline-block; margin: 0 10px; } nav a { color: #fff; text-decoration: none; } nav a:hover { color: #ff6600; } /* 搜索框样式 */ .search { text-align: center; padding: 20px 0; } .search input { width: 400px; height: 36px; border: 1px solid #ccc; border-radius: 18px; padding: 0 20px; font-size: 14px; outline: none; } .search button { width: 80px; height: 36px; border: none; border-radius: 18px; background-color: #ff6600; color: #fff; font-size: 14px; outline: none; cursor: pointer; margin-left: -5px; } /* 广告轮播样式 */ .banner { width: 100%; height: 400px; overflow: hidden; position: relative; } .banner img { width: 100%; height: 100%; position: absolute; left: 0; top: 0; } /* 商品分类样式 */ .category ul { list-style: none; text-align: center; } .category li { display: inline-block; margin: 20px 10px; } .category a { display: block; width: 200px; height: 200px; border: 1px solid #ccc; border-radius: 5px; overflow: hidden; position: relative; } .category img { width: 100%; height: 100%; } .category span { display: block; text-align: center; margin-top: 10px; } /* 新品推荐样式 */ .new-products { padding: 40px 0; text-align: center; } .new-products h2 { font-size: 24px; margin-bottom: 20px; } .new-products ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; } .new-products li { margin: 0 20px 40px; text-align: center; } .new-products a { display: block; width: 200px; height: 300px; border: 1px solid #ccc; border-radius: 5px; overflow: hidden; position: relative; } .new-products img { width: 100%; height: 200px; } .new-products span { display: block; text-align: center; margin-top: 10px; } .new-products .price { color: #ff6600; font-size: 18px; } /* 优惠活动样式 */ .promotion { padding: 40px 0; text-align: center; } .promotion h2 { font-size: 24px; margin-bottom: 20px; } .promotion ul { list-style: none; display: flex; justify-content: center; } .promotion li { margin: 0 20px; } .promotion a { display: block; width: 300px; height: 200px; border: 1px solid #ccc; border-radius: 5px; overflow: hidden; position: relative; } .promotion img { width: 100%; height: 100%; } /* 底部样式 */ footer { background-color: #ccc; height: 50px; line-height: 50px; text-align: center; } footer p { font-size: 14px; color: #666; } ``` 以上示例代码仅供参考,实际制作需要根据具体情况进行调整和优化。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值