小滕学java
baiyejianxin
全部博文(99)
2011年(1)
2010年(21)
2009年(77)
Phyllis6
yuangush
seagull_
lepeng12
潇潇101
pinktopo
小飞学习
After丶F
羽翰love
分类: Java
2009-04-22 13:51:42
<html> <head> <style type="text/css">.content { width: 400px;/*div宽度*/ height: 200px;/*div高度*/ background: #f00;/*背景*/ position: absolute;/*绝对的定位*/ left: 50%; top: 50%; margin-left: -200px; /* div宽度400的一半 */ margin-top: -100px; /* div高度200的一半 */}</style></head> <body> <div class="content">.......</div></body> </html>
上一篇:struts2标签详解
下一篇:JavaScript笔记(不断更新中...)
登录 注册