`
shixiuteng
  • 浏览: 38809 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

div上下左右居中

 
阅读更多
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
     <title>win_center</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  <style type="text/css">
html,body{width:100%;height:100%;padding:0;margin:0;overflow:auto;}
.wrap{
       height:100%;
       text-align:center;
}
.container {
       width:200px;
       border:0px solid #ccc;
       text-align:left;
       display:inline-block;
       vertical-align:middle;
}
.edge {
     width:1px;
     *width:0;
      height:100%;
      display:inline-block;
      vertical-align:middle;
}
</style>
</head>
<body>
   <div class="wrap">
	<span class="edge"></span>
	<span class="container">
		<img src="/infobidding/img/win_center.jpg" width="550" height="330" border="0">
	</span>
	</div>
</body>
  
</html>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics