  | 
              热门文章 | 
             
            | 
         
        
           | 
         
       
	  
        
          
            
                | 
              相关文章 | 
             
            | 
         
        
          | 没有相关文章 | 
         
       
	  
     | 
	 | 
    
	
      
        | DIV绝对居中(水平\垂直) | 
       
      
        来源:百度空间 更新时间:2010/7/17 23:11:03 阅读次数: 
字体:[大 中 小大 中 小大 中 小] 我要投稿 | 
       
      
        
 <!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><html> <body> <div>web标准常见问题大全</div><p>这里我们使用百分比绝对定位,与外补丁负值的方法,负值的大小为其自身宽度高度除以二</p> </body> </html> | 
       
      
        | 上一篇文章: 基本完美的兼容IE、Firefox的图片自动缩放CSS代码下一篇文章: 当文字过多时显示省略号... | 
       
	  
        | 
 | 
       
     
	 |