该用户登录注册表单的HTML结构如下:主要分为sign-in和sign-up两个部分。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | < div class = "login-wrap" > < div class = "login-html" > < input id = "tab-1" type = "radio" name = "tab" class = "sign-in" checked>< label for = "tab-1" class = "tab" >Sign In</ label > < input id = "tab-2" type = "radio" name = "tab" class = "sign-up" >< label for = "tab-2" class = "tab" >Sign Up</ label > < div class = "login-form" > < div class = "sign-in-htm" > < div class = "group" > < label for = "user" class = "label" >Username</ label > < input id = "user" type = "text" class = "input" > </ div > < div class = "group" > < label for = "pass" class = "label" >Password</ label > < input id = "pass" type = "password" class = "input" data-type = "password" > </ div > < div class = "group" > < input id = "check" type = "checkbox" class = "check" checked> < label for = "check" >< span class = "icon" ></ span > Keep me Signed in</ label > </ div > < div class = "group" > < input type = "submit" class = "button" value = "Sign In" > </ div > < div class = "hr" ></ div > < div class = "foot-lnk" > < a href = "#forgot" >Forgot Password?</ a > </ div > </ div > < div class = "sign-up-htm" > < div class = "group" > < label for = "user" class = "label" >Username</ label > < input id = "user" type = "text" class = "input" > </ div > < div class = "group" > < label for = "pass" class = "label" >Password</ label > < input id = "pass" type = "password" class = "input" data-type = "password" > </ div > < div class = "group" > < label for = "pass" class = "label" >Repeat Password</ label > < input id = "pass" type = "password" class = "input" data-type = "password" > </ div > < div class = "group" > < label for = "pass" class = "label" >Email Address</ label > < input id = "pass" type = "text" class = "input" > </ div > < div class = "group" > < input type = "submit" class = "button" value = "Sign Up" > </ div > < div class = "hr" ></ div > < div class = "foot-lnk" > < label for = "tab-1" >Already Member?</ a > </ div > </ div > </ div > </ div > </ div > |
在登录和注册界面进行切换时使用了CSS3 3D Transforms属性,由于IE浏览器不支持transform-style:preserve-3d;,所以在IE浏览器中得不到正常的翻转效果。
1 2 3 4 5 6 7 8 | .login-form{ min-height : 345px ; position : relative ; -webkit-perspective: 1000px ; perspective: 1000px ; -webkit-transform-style:preserve -3 d; transform-style:preserve -3 d; } |
下面是该用户登录注册界面的一些截图效果。
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com