CSS绝对定位的DIV

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
02 <HTML xmlns="http://www.w3.org/1999/xhtml">
03 <head>
04 <style type="text/css">
05 .div{width:100%;height:25px;top:0;left:0;position:fixed !important;z-index:99;background-color:#ccc;}
06 </style>
07 </head>
08 <body>
09   
10 <div class="div">ffffffffff</div>
11   
12 <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
13 <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
14 <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
15 </body>
16 </html>

posted on 2011-06-01 16:13  EveryMan  阅读(122)  评论(0)    收藏  举报

导航