多个DIV排列时居中
来源:互联网 发布:网络保密十不准 编辑:程序博客网 时间:2024/05/01 04:48
<?xml version="1.0"encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<title>多个DIV排列时居中</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<style type="text/css">
body {text-align:center}
#outer {
width:60%;
background:#ffffcc;
margin:auto;
text-align:center;
}
.inner {
width:100px;
height:100px;
margin:5px;
border:1pxsolid #000;
}
* html .inner {display:inline}
html>body #outer {display:table}
html>body .inner {display:table;float:left}
@media all and (min-width: 0px){
html>body .inner{display:inline-block;float:none;}
}
</style>
</head>
<body>
<!-- force quirks mode by using the xml pro-logue-->
<div id="outer">
<divclass="inner">test</div>
<divclass="inner">2</div>
<divclass="inner">3</div>
<divclass="inner">4</div>
<divclass="inner">5</div>
<divclass="inner">6</div>
<divclass="inner">7</div>
<divclass="inner">8</div>
<divclass="inner">9</div>
<divclass="inner">10</div>
<divclass="inner">11</div>
<divclass="inner">12</div>
<divclass="inner">13</div>
<br style="clear:both"/>
</div>
</body>
</html>
<script language="Javascript">
var now = new Date();
document.write("<imgsrc='http://counter.yesky.com/counter.shtml?CID=54197&AID=-1&refer="+escape(document.referrer)+"&rand="+now.getTime() +"&cur="+escape(document.URL)+"' border='0' alt=''width='0' height='0'>");
</script>
<noscript>
<imgsrc="http://counter.yesky.com/counter.shtml?CID=54197&AID=-1&refer=noscriptcounter&cur=noscriptcounter"border='0' width='0' height='0'/>
</noscript>test
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<title>多个DIV排列时居中</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<style type="text/css">
body {text-align:center}
#outer {
}
.inner {
}
* html .inner {display:inline}
html>body #outer {display:table}
html>body .inner {display:table;float:left}
@media all and (min-width: 0px){
html>body .inner{display:inline-block;float:none;}
}
</style>
</head>
<body>
<!-- force quirks mode by using the xml pro-logue-->
<div id="outer">
</div>
</body>
</html>
<script language="Javascript">
var now = new Date();
document.write("<imgsrc='http://counter.yesky.com/counter.shtml?CID=54197&AID=-1&refer="+escape(document.referrer)+"&rand="+now.getTime()
</script>
<noscript>
<imgsrc="http://counter.yesky.com/counter.shtml?CID=54197&AID=-1&refer=noscriptcounter&cur=noscriptcounter"border='0' width='0' height='0'/>
</noscript>test
2
3
4
5
6
7
8
9
10
11
12
13
- 多个DIV排列时居中
- 让多个DIV排列时居中
- 简单DIV居中排列
- 多个DIV,并排居中
- 单个 多个div居中问题
- 2个div并排居中
- 3个div并列居中
- 3个div水平居中
- 一行显示多个div 并居中显示
- 如何让让多个横向的DIV居中显示
- 多个div水平排列并出现横向滚动条
- 一个div 内嵌套多个div ,并使其全部居中
- div中嵌套的多个div使用了浮动后居中的办法
- CSS:多个DIV在同一行居中显示的一种实现方法
- CSS:多个DIV在同一行居中显示的一种实现方法
- div 居中
- DIV 居中
- div 居中
- 详细解释织梦DEDECMS的默认模板的C…
- 避免表格table被撑开变形的CSS代码…
- 使用 Excel Services ,结合 Analysis Services 在 SharePoint 中发布报表(转)
- 使用CSS为图片添加更多趣味的5种方…
- 5种方法立刻写出更好的CSS代码
- 多个DIV排列时居中
- 可纵,乐不可极,志不可满
- Gvim的配置文件vimrc_example.vim
- vi/vim 基本使用方法
- 兼容IE6的十条有用的修复方法
- ie8如何兼容ie6
- IE6兼容问题汇总
- IE6.7.8.FF兼容的问题的解决之道
- js正则验证与扩展方法