* { padding:0; margin:0; } #register { width:540px; height:407px; border:1px solid hotpink; margin:0 auto; margin-top:20px; } #register .row { height:50px; line-height:50px; border-bottom:1px dashed #ccc; } #register .row div { float:left; height:50px; line-height:50px; } #register .row .left { width:30%; text-align:right; } #register .row .right { width:70%; } #register .row .right input { width:200px; height:25px; border:1px solid #ccc; border-radius:4px; padding:0px 4px; margin-left:10px; } #register .row .right input[type=radio] { width:30px; height:15px; line-height:15px; } #register .row button { width:80px; height:30px; line-height:30px; margin:0 auto; } #bg { width:100%; height:800px; background:black; opacity:0.8; position:absolute; top:0px; z-index:10; display:none; } #msg-box { height:100px; line-height:100px; text-align:center; top:240px; position:absolute; z-index:100; display:none; } .loading { width:100px; margin-left:48%; background-image:url('loading.gif'); background-repeat:no-repeat; } .success { width:400px; margin-left:34%; color:green; border:2px solid green; } .error { width:400px; margin-left:34%; color:red; border:2px solid red; }
注释比较详细,可直接使用