淘宝网购物车jquery源码和网易新用户注册页面表单验证的练习

淘宝网购物车源码:




网易新用户注册页面






    
    
通行证用户名:
@163.com
登录密码:
重复登录密码:
性别:
真实姓名:
昵称:
关联手机号:
保密邮箱:
>

CSS:

register.css

* {padding:0;margin:0;}

#header,#main{
    width:600px;
    margin:0 auto;
}
#main{
    padding: 10px;
    border: 1px #999999 solid;
    border-radius: 8px;
    overflow: hidden;
}
.inputs{
    border:solid 1px #a4c8e0;
    width:150px;
    height:15px;
}

.userWidth{
    width:110px;
}
dl dd div{
    display: inline-block;
    font-size:12px;
    color:#000;
    margin-left: 5px;
    line-height: 18px;
}
dl{
    clear:both;
    line-height: 22px;
}
dt,dd{
    float:left;
}
dt{
    width:110px;
    text-align:right;
    font-size:14px;
    height:30px;
    line-height:25px;
}
dd{
    font-size:12px;
    color:#666666;
}
dl>dd:first-of-type{width: 170px;}
/*褰撻紶鏍囨斁鍒版枃鏈鏃讹紝鎻愮ず鏂囨湰鐨勬牱寮�*/
.import_prompt{
    border:solid 1px #ffcd00;
    background-color:#ffffda;
    padding-left:5px;
    padding-right:5px;
    line-height:20px;
}
/*褰撴枃鏈鍐呭涓嶇鍚堣姹傛椂锛屾彁绀烘枃鏈殑鏍峰紡*/
.error_prompt{
    border:solid 1px #ff3300;
    background:#fff2e5 url(../images/li_err.gif)5px 2px  no-repeat;
    padding:2px 5px 0px 25px;
    line-height:20px;
}
/*褰撴枃鏈鍐呭杈撳叆姝g‘鏃讹紝鎻愮ず鏂囨湰鐨勬牱寮�*/
.ok_prompt{
    border:solid 1px #01be00;
    background:#e6fee4 url(../images/li_ok.gif) 5px 2px no-repeat;
    padding:2px 5px 0px 25px;
    line-height:20px;
}

myCart.css

@charset "gb2312";
/* CSS Document */

body{
    margin:0px;
    padding:0px;
    font-size:12px;
    line-height:20px;
    color:#333;
   }
ul,li,ol,h1,dl,dd{
    list-style:none;
    margin:0px;
    padding:0px;
    }
a{
    color:#1965b3;
    text-decoration: none;
    }    
a:hover{
    color:#CD590C;
    text-decoration:underline;
    }
img{
    border:0px;
    vertical-align:middle;
    }
#header{
    height:40px;
    margin:10px auto 10px auto;
    width:800px;
    clear:both;
    }
#nav{
    margin:10px auto 10px auto;
    width:800px;
    clear:both;
    }
#navlist{
    width:800px;
    margin:0px auto 0px auto;
    height:23px;
    }
    #navlist li{
        float:left;
        height:23px;
        line-height:26px;
    }
    .navlist_red_left{
        background-image:url(../images/taobao_bg.png);
        background-repeat:no-repeat;
        background-position:-12px -92px;
        width:3px;
        }
    .navlist_red{
        background-color:#ff6600;
        text-align:center;
        font-size:14px;
        font-weight:bold;
        color:#FFF;
        width:130px;
        }
    .navlist_red_arrow{
        background-color:#ff6600;
        background-image:url(../images/taobao_bg.png);
        background-repeat:no-repeat;
        background-position:0px 0px;
        width:13px;
        }
    .navlist_gray{
        background-color:#e4e4e4;
        text-align:center;
        font-size:14px;
        font-weight:bold;
        width:150px;
        }
    .navlist_gray_arrow{
        background-color:#e4e4e4;
        background-image:url(../images/taobao_bg.png);
        background-repeat:no-repeat;
        background-position:0px 0px;
        width:13px;
        }
    .navlist_gray_right{
        background-image:url(../images/taobao_bg.png);
        background-repeat:no-repeat;
        background-position:-12px -138px;
        width:3px;
        }
#content{
    width:800px;
    margin:10px auto 5px auto;
    clear:both;
    }
    .title_1{
        text-align:center;
        width:50px;
        }
    .title_2{
        text-align:center;
        }
    .title_3{
        text-align:center;
        width:80px;
        }
    .title_4{
        text-align:center;
        width:80px;
        }
    .title_5{
        text-align:center;
        width:100px;
        }
    .title_6{
        text-align:center;
        width:80px;
        }
    .title_7{
        text-align:center;
        width:60px;
        }
    .line{
        background-color:#a7cbff;
        height:3px;
        }
    .shopInfo{
        padding-left:10px;
        height:35px;
        vertical-align:bottom;
        }
    .num_input{
        border:solid 1px #666;
        width:25px;
        height:15px;
        text-align:center;
        }
    .cart_td_1,.cart_td_2,.cart_td_3,.cart_td_4,.cart_td_5,.cart_td_6,.cart_td_7,.cart_td_8{
        background-color:#e2f2ff;
        border-bottom:solid 1px #d1ecff;
        border-top:solid 1px #d1ecff;
        text-align:center;
        padding:5px;
        }
    .cart_td_1,.cart_td_3,.cart_td_4,.cart_td_5,.cart_td_6,.cart_td_7{
        border-right:solid 1px #FFF;
        }
    .cart_td_3{
        text-align:left;
        }
    .cart_td_4{
        font-weight:bold;
        }
    .cart_td_7{
        font-weight:bold;
        color:#fe6400;
        font-size:14px;
        }
    .hand{
        cursor:pointer;
        }
.shopend{
    text-align:right;
    padding-right:10px;
    padding-bottom:10px;
    }
.yellow{
    font-weight:bold;
    color:#fe6400;
    font-size:18px;
    line-height:40px;
    }

网易新用户注册页面源码:




网易新用户注册页面






    
    
通行证用户名:
@163.com
登录密码:
重复登录密码:
性别:
真实姓名:
昵称:
关联手机号:
保密邮箱:
>

 

转载于:https://www.cnblogs.com/java-123/p/9316862.html

你可能感兴趣的:(淘宝网购物车jquery源码和网易新用户注册页面表单验证的练习)