查看文章 |
用position:absolute来定义登录页面!牛!
2009-01-13 20:45
第一次看到有人如此定义登录的css样式和使用html标签编写登录,写的很好!值得学习。绝对原创!呵呵! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>Untitled Document</title> </head> <body> <div class="edit"> <dl> <dt>用户名:</dt> <dd><input name="" type="text" /></dd> <dt>密码:</dt> <dd><input name="" type="text" /></dd> </dl> </div> <style type="text/css"> .edit {border:3px double #EFB8BD;margin:10px 0;padding:0;} .edit dl {border-bottom:1px solid #E6E6E6;line-height:200%;margin:0;padding:5px;} .edit dt {margin:0;padding:3px 0;position:absolute;text-align:right;width:8em;} .edit dd {border-bottom:1px solid #F3F3F3;margin:0;overflow:auto;padding:3px 0 3px 9em;} </style> </body> </html> |
最近读者:

