jQuery ?? ??? ???? ???
?? ????? html ???? ?? ??? ??? ???????. ?? ??? ??? ??? ?????.
css ???? ?? ???? ? ???? ??? ? ????. ?, ?? ???? ?? ???, ?? ??????.
CSS ??? ???????
<style type="text/css"> *{margin:0px;padding:0px;} #bdy{width:100%;height:950px;background:#999;} #dv{position:absolute; top:40px;left:20px;width:300px;height:250px;background:#f44;} #con{width:300px;height:200px;margin-left:35px;margin-top:35px;font-family:"隸書(shū)";font-size:18px;} #but{width:230px;height:30px;margin-top:15px;border:1px solid #ccc;background:#f60;font-family:"隸書(shū)"; font-size:18px;} #but:hover{background:#f66;} span{margin-left:80px;} </style>
?? ?? ??? CSS ??? ??????
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>登錄頁(yè)面的驗(yàn)證</title> <style type="text/css"> *{margin:0px;padding:0px;} #bdy{width:100%;height:950px;background:#999;} #dv{position:absolute; top:40px;left:20px;width:300px;height:250px;background:#f44;} #con{width:300px;height:200px;margin-left:35px;margin-top:35px;font-family:"隸書(shū)";font-size:18px;} #but{width:230px;height:30px;margin-top:15px;border:1px solid #ccc;background:#f60;font-family:"隸書(shū)"; font-size:18px;} #but:hover{background:#f66;} span{margin-left:80px;} </style> </head> <body> <div id="bdy"> <div id="dv"> <div id="con"> <form method="post" action="#"> 用戶(hù)名:<input type="text" placeholder="請(qǐng)輸入用戶(hù)名" id="name"></br> <span id="sp1"></span></br></br> 密 碼:<input type="password" placeholder="請(qǐng)輸入密碼" id="pwd"></br> <span id="sp2"></span></br></br> <input type="button" value="登 錄" id="but"> </form> </div> </div> </div> </body> </html>
????? ????, ??? ??? ? ????. , ???? ??? ???? ????? ??? ????? ? ????. ?? #bdy? ?? div? ????, ???? ??? ? ????
background:url('picture');