怎能笑的私藏(藏什么呀?还没有想好,乱堆!)

                                                                                                        ————怎能笑
怎样使一个层垂直居中于浏览器中

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
<!--
div {
 position:absolute;
 top:50%;
 left:50%;
 margin:-100px 0 0 -100px;
 width:200px;
 height:200px;
 border:1px solid red;
 }

-->
</style>
<div>web标准常见问题大全</div>

posted on 2007-04-10 16:03  怎能笑的私藏(藏什么呀?还没有想好,乱堆!)  阅读(226)  评论(0编辑  收藏  举报