div+css模仿pc端可拖动qq登录窗口代码
代码语言:html
所属分类:表单美化
代码描述:div+css模仿pc端可拖动qq登录窗口代码
代码标签: div css 模仿 pc端 拖动qq 登录 窗口 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.3.3.4.css"> <style> * { margin:0; padding:0; } html,body { width:100%; height:100%; overflow:hidden; } body { background-image:url("//repo.bfw.wiki/bfwrepo/image/631ab0ca24a8f.png"); background-repeat:no-repeat; background-size:100% 100%; } div.QQlogin { position:absolute; left:calc(50% - 215px); top:calc(45% - 10px); width:430px; height:333px; box-shadow:2px 2px 10px rgba(0,0,0,0.5); z-index:100; display:none; } div.QQlogin aside { width:100%; height:180px; background-image:url("//repo.bfw.wiki/bfwrepo/images/qq/qq.gif"); cursor:move; } div.down { width:100%; position:relative; height:153px; background-color:#EBF2F9; margin-right:0; margin-left:0; } div.down div.touxiang { height:100%; } div.down div.touxiang>a { width:81px; height:81px; display:inline-block; background:url("//repo.bfw.wiki/bfwrepo/image/61e27364c2151.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90") no-repeat; background-size:100% 100%; opacity:.8; margin-top:20px; margin-left:30px; } div.down div.touxiang dl { position:absolute; left:100%; top:53%; } div.down div.touxiang dl span { display:inline-block; width:14px; height:14px; background-image:url("//repo.bfw.wiki/bfwrepo/images/qq/ptlogin.png"); background-repeat:no-repeat; margin-right:5px; opacity:.8; } span.online { background-position-x:0; } span.callMe { background-position-x:-73px; } span.away { background-position-x:-18px; } span.busy { background-position-x:-36px; } span.hid { background-position-x:-54px; } span.silent { background-position-x:-108px; } dl dd { border:1px solid #acb1b6; width:100px; background-color:#eee; border-radius:5px; padding-left:10px; box-sizing:border-box; display:none; z-index:500; position:absolute; } dl dd a { display:block; color:#001423; margin:10px 0; } div.down div.touxiang i.people { background:url("//repo.bfw.wiki/bfwrepo/images/qq/input_username.png") no-repeat; position:absolute; width:35px; height:35px; top:75%; left:10px; } div.login-box { margin-top:15px; margin-left:20px; } div.login-box input { height:30px; width:195px; border:1px solid #d1d1d1; padding-left:10px; color:#7e7e7e; } div.login-box input::-webkit-input-placeholder { color:#7e7e7e; } div.login-box span.first { display:inline-block; position:absolute; width:20px; height:20px; background:url("//repo.bfw.wiki/bfwrepo/images/qq/row.png") no-repeat; margin-left:172px; top:8px; } div.login-box span.second { display:inline-block; position:absolute; width:20px; height:20px; background:url("//repo.bfw.wiki/bfwrepo/images/qq/press.png") no-repeat; margin-left:168px; top:34px; } div.login-box input:first-child { border-top-left-radius:5px; border-top-right-radius:5px; border-bottom:none; } div.login-box input:last-child { border-bottom-left-radius:5px; border-bottom-right-radius:5px; } div.login-box label { font-size:10px; color:#656565; font-weight:normal; text-indent:15px; margin-top:10px; display:inline-block; } div.login-box label.auto-login { margin-left:45px; } div.login-box input.three { width:16px; height:16px; margin-top:1px; position:absolute; margin-left:-15px; } div.login-box input.four { width:16px; height:16px; margin-top:1px; position:absolute; margin-left:-15px; } div.login-box button { display:block; width:195px; height:30px; background-color:#16a8de; color:#fff; border-radius:5px; font-size:14px; font-weight:600; z-index:-500; } div.register { position:absolute; margin-top:22px; margin-left:335px; } div.register a { color:#2685e3; display:block; width:60px; font-size:13px; font-family:"微软雅黑"; } div.register a.find-password { margin-top:13px; } div.mask { width:100%; height:100%; background-color:#000; position:absolute; top:0; bottom:0; left:0; right:0; z-index:-3000; opacity:0.3; filter:Alpha(opacity=40); display:none; } div.login a { color:#ff023a; font-size:30px; font-weight:600; position:absolute; left:calc(50% - 100px); top:calc(55% - 10px); } div.QQlogin i.close { position:absolute; z-index:100000; display:inline-block; width:20px; height:20px; top:3px; right:5px; background-image:url("//repo.bfw.........完整代码请登录后点击上方下载按钮下载查看
网友评论0