Code
Code
<div id="outer">
<div id="middle">
<div id="inner">
<div class="txt_index">©2009 - 上海领旗信息科技有限公司</div>
</div>
</div>
</div>
<div id="outer">
<div id="middle">
<div id="inner">
<div class="txt_index">©2009 - 上海领旗信息科技有限公司</div>
</div>
</div>
</div>
通过IE7.0、Mozilla3.0。
1 body {padding: 0; margin: 0;}body,html{height: 100%;}
2 #outer {height: 100%; overflow: hidden; position: relative;width: 100%;/* background:ivory;*/}
3 #outer[id] {display: table; position: static;}
4 *+html #outer {display: table; position: static;}
5 #middle {position: absolute; top: 50%;} /* for explorer only*/
6 *+html #middle {display: table-cell; vertical-align: middle; position: static;}
7 #middle[id] {display: table-cell; vertical-align: middle; position: static;}
8 *+html #inner {position:relative;top:25%; width: 550px;margin: 0 auto;}
9 #inner {position: relative; top: -50%;width: 550px;margin: 0 auto;} /* for explorer only */