电商静态网页建设初探

「web小白 」 诚心求各位大佬指点!!!

1.登录页面

  • html代码
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>魅力惠登录页面</title>
    
    <link rel="stylesheet" href="js/bootstrap-3.3.7-dist/css/bootstrap.css">
    <link rel="stylesheet" href="style/login.css">

    <script type="text/javascript" href="js/jquery-1.12.4.js"></script>
    <script type="text/javascript" href="js/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
    <style>
        .text-center{margin-top:-30px}
    </style>



</head>
<body>
    <div class="kj">
        <div class="header">
            <!-- 页头logo -->
            <div>![](images/login/logo.png)</div>
        </div>
        <div class="content">
            <div class="main">
                <div class="register">
                    <h2>免费注册</h2>
                    <span>已注册?<a href="#">登录</a></span>
                </div>
                <div class="login_bar">
                    <ul>
                        <li><span>账户名:</span><input id="user_name" name="user_name" type="text" placeholder="已验证手机号/邮箱"></li>
                        <li><span>密码:</span><input id="password" type="password" name="password"></li>
                    </ul>
                    <div style="clear:both;"></div>
                    <div class="login_btn">
                        <a  id="submitBtn" href="#">会员登录</a>
                    </div>
                </div>
                <div login_login>
                    <input type="checkbox" value="xddl">
                    <span class="dl">下次自动登录</span>
                    <a class="forget" href="#"><span>忘记密码</span></a>
                </div>
                <div class="partner"> 
                  <span class="lm">联名登录:</span>
                  <a href="#" class="weibo">![](images/login/weibo.png)</a>
                  <a href="#" class="zhifubao">![](images/login/zhifubao.png)</a>   
                </div>
                <hr class="xian">
                <div>
                    <div class="erweima">
                        ![](images/login/erweima.jpg)
                        <p>扫描二维码或发送短信
                            <br>
                            “MLH”到“12114”
                            <br>
                            下载APP尊享独家优惠
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <!-- 页尾 -->
        <div class="footer">
            <ul>
                <li class="login12"><a href="#">![](images/login/7.png)</a></li>
                <li class="login12"><a href="#">![](images/login/8.png)</a></li>
                <li class="login12"><a href="#">![](images/login/9.png)</a></li>
                <li class="login12"><a href="#">![](images/login/10.png)</a></li>
                <li class="login12"><a href="#">![](images/login/11.png)</a></li>
                <li class=""><a href="#">![](images/login/12.png)</a></li>
            </ul>
        </div>
        </div class="footer_copyright">
            <p class="text-center">COPYRIGHT©2016 杭州魅俪信息技术有限公司版权所有     浙ICP备16004860号-1</p>
        </div>
    </div>
</body>
</html>
  • css
.kj{width:1000px;height:833px;margin: 0 auto;}
          /*页头*/
.login_header{width:1000px;
                height: 66px;
                position: absolute;}

img.center-block.logo{margin-top:30px;}

.content{height: 650px;
        background-image: url(../images/login/1.jpg);}

.main{float:right;width: 350px;height: 400px;margin-top:80px;margin-right: 170px;}

.register{width: 350px;height:50px;padding-bottom: 10px;font-family:"Microsoft Yahei";}

.register h2{font-size: 18px;
            font-weight: bold;
            float: left;
            margin-left:40px;}

.register span{padding:0;margin:0px;letter-spacing: .5px;float: right;margin-left:200px; 
                margin-top: -28px;}

.register span a{color:red;}

.login_bar{width: 350px;font-family:"Microsoft Yahei";}

.login_bar li{list-style: none;margin:10px;}

.login_bar span{float: left;
                width: 75px;
                margin-left: -100px;
                height: 30px;
                line-height: 30px;
                overflow: hidden;
                text-align: right;
                white-space: nowrap;
                display: inline;}

.login_bar input{
                padding: 15px;
                margin-left: -5px;
                width: 300px;
                padding-left:10px;
                height: 30px;
                border: 1px solid #999;
                line-height: 28px;}

a#submitBtn{display: block;
            background-color: #db2725;
            width: 300px;
            height: 35px;
            font-weight: solid 1px #E0E0E0;
            text-align: center;
            line-height: 35px;
            color: #FFF;
            font-size: 14px;
            margin-left: 46px;}

.login_login{width: 350px;height: 17px;float:left;margin-top:100px;
}
input[type="checkbox"]{display: block;margin-left: 45px;margin-top: 16px;width: 12px;height: 12px;
    float: left;}

span[class="dl"]{float: left;margin-left: 9px;margin-top: 12px;}    

a[class="forget"]{float: left;margin-left: 140px;margin-top: 12px;color:gray;}      

div[class="partner"]{width: 350px;height:17px;}  

span[class="lm"]{float:left;margin-left: -38px;margin-top:12px; }

.weibo{float:left;margin-top:10px;padding-left: 15px;}

.zhifubao{float:left;margin-top:10px;padding-left: 30px;}

.xian{display: block;width: 380px;float: left;margin-top: 20px;margin-left: -70px;}

.erweima{float: left;margin-left: 90px;margin-top: 10px;}

.erweima p{float: right;margin-top:10px;padding: 8px; }
/*页脚*/
.login12{float: left;display: block;margin-left:15px;border-right: 1px #272727 solid;}

.footer ul li{list-style: none;float: left;display: block;margin-top: 25px;}

登录页面

2.注册页面

  • html代码
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>魅力惠注册页面</title>
    
    <link rel="stylesheet" href="js/bootstrap-3.3.7-dist/css/bootstrap.css">
    <link rel="stylesheet" href="style/register.css">

    <script type="text/javascript" href="js/jquery-1.12.4.js"></script>
    <script type="text/javascript" href="js/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
    
    <style>
        .yzm{border:1px solid #999; width: 145px;height: 32px;margin-left: 10px;}
        .dj{display:block;margin-top: 15px;margin-left: 45px;}
    </style>

</head>
<body>
    <div class="kj">
        <div class="header">
            <!-- 页头logo -->
            <div>![](images/login/logo.png)</div>
        </div>
        <div class="content">
            <div class="main">
                <div class="register">
                    <h2>免费注册</h2>
                    <span>已注册?<a href="#">登录</a></span>
                </div>
                <div class="xyh">新客专享 820元现金券礼包</div>
                <div class="login_bar">
                    <ul>
                        <li><span>账户名:</span><input id="user_name" name="user_name" type="text" placeholder="手机号/邮箱"></li>
                        <li><span>密码:</span><input id="password" type="password" name="password" placeholder="请输入6-20个字符"></li>
                        <li><span>确认密码:</span><input id="user_name" name="user_name" type="text"></li>
                        <li><span>验证码:</span><input type="text" class="dx">![](images/login/yzm.jpg)</li>
                        <li><span>短信验证码:</span><input type="text" class="dx"></li>
                        <button type="submit" class="btn btn-default yzm">获取验证码</button>

                    </ul>
                    <div style="clear:both;"></div>
                    <div class="login_btn">
                        <a  id="submitBtn" href="#">立即注册</a>
                    </div>
                </div>
                <div login_login>
                    <span class="dj">点击立即注册即表示同意魅力惠<a href="#">使用条款</a></span>
                    <input type="checkbox" value="xddl">
                    <span class="dl">您将收到魅力惠每日最新上线邮件</span>
                    
                </div>
                <hr class="xian">
                <div>
                    <div class="erweima">
                        ![](images/login/erweima.jpg)
                        <p><span class="fg">扫描二维码或发送短信</span>
                            <br>
                            <span class="fg">&nbsp &nbsp “MLH”到“12114”</span>
                            <br>
                            <span class="fg">下载APP尊享独家优惠</span>
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <!-- 页尾 -->
        <div class="footer">
            <ul>
                <li class="login12"><a href="#">![](images/login/7.png)</a></li>
                <li class="login12"><a href="#">![](images/login/8.png)</a></li>
                <li class="login12"><a href="#">![](images/login/9.png)</a></li>
                <li class="login12"><a href="#">![](images/login/10.png)</a></li>
                <li class="login12"><a href="#">![](images/login/11.png)</a></li>
                <li class=""><a href="#">![](images/login/12.png)</a></li>
            </ul>
        </div>
        </div class="footer_copyright">
            <p class="text-center">COPYRIGHT©2016 杭州魅俪信息技术有限公司版权所有     浙ICP备16004860号-1</p>
        </div>
    </div>
</body>
</html>
  • css
.kj{width:1000px;height:833px;margin: 0 auto;}

.login_header{width:1000px;
                height: 66px;
                position: absolute;}

img.center-block.logo{margin-top:30px;}

.content{height: 650px;
        background-image: url(../images/login/1.jpg);}

.main{float:right;width: 350px;height: 485px;margin-top:80px;margin-right: 170px;}

.register{width: 350px;height:50px;padding-bottom: 10px;font-family:"Microsoft Yahei";}

.register h2{font-size: 18px;
            font-weight: bold;
            float: left;
            margin-left:40px;}

.register span{padding:0;margin:0px;letter-spacing: .5px;float: right;margin-left:200px; 
                margin-top: -28px;}

.register span a{color:red;}

.xyh{margin-left: 42px;color: red;}

.login_bar{width: 400px;font-family:"Microsoft Yahei";}

.login_bar li{list-style: none;margin:10px;}

.login_bar span{float: left;
                width: 75px;
                margin-left: -100px;
                height: 30px;
                line-height: 30px;
                overflow: hidden;
                text-align: right;
                white-space: nowrap;
                display: inline;}

.login_bar input{
                padding: 15px;
                margin-left: -5px;
                width: 300px;
                padding-left:10px;
                height: 30px;
                border: 1px solid #999;
                line-height: 28px;}

.login_bar .dx{float:left;width: 145px;}

            

#submitBtn{display: block;
            background-color: #db2725;
            width: 300px;
            height: 35px;
            font-weight: solid 1px #E0E0E0;
            text-align: center;
            line-height: 35px;
            color: #FFF;
            font-size: 14px;
            margin-left: 46px;}




input[type="checkbox"]{display: block;margin-left: 45px;margin-top: 11px;width: 12px;height: 12px;
    float: left;}
    
.dl{float: left;margin-left: 9px;margin-top: 8px;}  

.xian{display: block;color:black;width: 400px;float: left;margin-top: 20px;margin-left: -50px;}

.erweima{float: left;margin-left: 90px;margin-top: 10px;}

.erweima p{float: right;margin-top:18px;padding: 10px; }

.fg{display: block;margin:-10px 0;}


.login12{float: left;display: block;margin-left:15px;border-right: 1px #272727 solid;}

.footer ul li{list-style: none;float: left;display: block;margin-top: 50px;}

.footer_copyright{float: left;margin-left: 400px;margin-top:0px; }

注册页面

未完待续...

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 158,560评论 4 361
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,104评论 1 291
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 108,297评论 0 243
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,869评论 0 204
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,275评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,563评论 1 216
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,833评论 2 312
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,543评论 0 197
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,245评论 1 241
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,512评论 2 244
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,011评论 1 258
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,359评论 2 253
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,006评论 3 235
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,062评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,825评论 0 194
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,590评论 2 273
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,501评论 2 268

推荐阅读更多精彩内容