<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><wbr><br> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh"><wbr><br> <head profile="http://www.w3.org/2000/08/w3c-synd/#"><wbr><br> <meta http-equiv="content-language" content="zh-cn" /><wbr><br> <meta http-equiv="content-type" content="text/html;charset=gb2312" /><wbr><br> <title>blueidea</title><wbr><br> <style type="text/css"><wbr><br><wbr><br><strong>div {<wbr><br> position:absolute;</wbr></strong><wbr><br><strong>top:50%;<wbr><br> left:50%;<wbr><br> margin:-100px 0 0 -100px;<wbr><br> width:200px;<wbr><br> height:200px;<wbr><br> border:1px solid red;<wbr><br> }<wbr><br></wbr></wbr></wbr></wbr></wbr></wbr></wbr></strong><wbr><br> </style><wbr><br> </head><wbr><br> <body><wbr><br> <div>web标准常见问题大全</div><wbr><br> </body><wbr><br> </html></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
使用百分比绝对定位,与外补丁负值的方法,负值的大小为其自身宽度高度除以二