1 2 3 4 5 6 7 | Victor("container", "output"); //登陆背景函数调用$("#entry_name").focus();$(document).keydown(function(event) { if (event.keyCode == 13) { $("#entry_btn").click(); }}); |
通过动画实现登录框的显示与提示
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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | .containerT { width:400px; height:300PX; text-align: center; position: absolute; top:50%; left:50%; margin:-150px 0 0 -200px; border-radius: 3px;}.containerT h1 { font-size:18px; font-family: "Microsoft YaHei", Arial, sans-serif; -webkit-transition-duration: 1s; transition-duration: 1s; -webkit-transition-timing-function: ease-in-put; transition-timing-function: ease-in-put; font-weight:500;}form { padding: 20px 0; position: relative; z-index: 2;}form input { -webkit-appearance: none; -moz-appearance: none; appearance: none; outline: 0; border: 1px solid rgba(255, 255, 255, 0.4); background-color: rgba(255, 255, 255, 0.2); width: 200px; border-radius: 3px; padding: 8px 15px; margin: 0 auto 10px auto; display: block; text-align: center; font-size:15px; color: white; -webkit-transition-duration: 0.25s; transition-duration: 0.25s; font-weight: 300;}form input:hover { background-color: rgba(255, 255, 255, 0.4);}form input:focus { background-color: white; width:230px; color: #333;}form button { -webkit-appearance: none; -moz-appearance: none; appearance: none; outline: 0; background-color: white; border: 0; padding: 10px 15px; color: #333; border-radius: 3px; width: 200px; cursor: pointer; font-family: "Microsoft YaHei", Arial, sans-serif; font-size: 16px; font-weight: 700; -webkit-transition-duration: 0.25s; transition-duration: 0.25s;}form button:hover { background-color: #f5f7f9;} |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com