日期:2014-05-17 浏览次数:20653 次
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Login Page</title> </head> <body>
body{ margin:0px; padding:0px; overflow:hidden; } #wrapper{ position:absolute; width:100%; height:100%; min-width:1280px; min-height:680px; overflow-x:hidden; overflow-y:hidden; background-image: -moz-linear-gradient(top,#77D1F6, #2F368F); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #77D1F6),color-stop(1, #2F368F)); }
<div id="header"> <div id="logo"></div> <div id="heading"> <div id="title">后台管理系统</div> <div id="subTitle">Ver 1.0</div> </div> </div>
#header{ height:100px; width:100%; } #logo{ position:absolute; float:left; margin-left:5%; margin-top:30px; height:40px; width:160px; text-align:center; } #heading{ position:relative; float:left; margin-left:20%; margin-top:-18px; height:110px; width:60%; border-radius: 18px; background-color:#1C75BC; opacity:0.6; } #heading #title{ margin-top:40px; text-align:center; font-family:微软雅黑; font-size:24px; font-weight:bold; } #heading #subTitle{ margin-top:10px; text-align:center; font-family:Courier New; }
<div id="main"> <div id="mainBg"> <div id="mainPanel"> <div id="left"> <div id="image"></div> </div> </div> </div> </div>
#main{ margin-top:20px; height:500px; width:100%; } #mainBg{ position:relative; float:left; margin-left:20%; margin-top:0px; height:500px; width:60%; border-radius: 18px; background-color:#000000; opacity:0.5; } #mainPanel{ position:relative; margin:25px; height:450px; border-radius: 18px; background-image: -moz-linear-gradient(top,#EBEBEB, #BFBFBF); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #EBEBEB),color-stop(1, #BFBFBF)); } #mainPanel #left{ float:left; border-right:2px solid #F6F6F6; position:relative; top:10%; height:80%; width:49%; border-right-style:groove; } #mainPanel #image{ position:relative; height:256px; width:256px; left:15%; top:12%; background-image:url('./images/admin.png'); }
<div id="right"> <div id="welcome"> <span id="welcome-text">管 理 登 录</span> </div> <div id="user-name"> <span class="item">用户名:</span> <span><input type="text" name="userName" class="form-input"></span> </div> <div id="user-password"> <span class="item">密 码:</span> <span class="input"><input type="password" name="password" class="form-inpu