登陆 注册 收藏本页

CSS+DIV设计实例:多个DIV排列时居中-Web标准教程

『 更新时间:2008-04-23 』『 字体: 』『 作者:龙犊 |  来源:模板无忧 』

以下为引用的内容:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</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:1px solid #000;
}
* html .inner {display:inline}/* for ie*/
html>body #outer {display:table}/*for mozilla */
html>body .inner {display:table;float:left}/*for mozilla */
@media all and (min-width: 0px){/* opera 7 styles */ 模板无忧-MB5u__com
html>body .inner {display:inline-block;float:none;}
}

模板无忧--mb5u_COm

</style>
</head>
<body>
<!-- force quirks mode by using the xml pro-logue -->
<div id="outer">
  <div class="inner">test</div>
  <div class="inner">2</div>
  <div class="inner">3</div>
  <div class="inner">4</div>
  <div class="inner">5</div>
  <div class="inner">6</div>
  <div class="inner">7</div>
  <div class="inner">8</div>
  <div class="inner">9</div>
  <div class="inner">10</div>
  <div class="inner">11</div>
  <div class="inner">12</div>
  <div class="inner">13</div>
  <br style="clear:both" /> 模板无忧-MB5U.-COM
</div>
</body>
</html>
<script language="Javascript">
var now = new Date();
document.write("<img src='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>
<img src="http://counter.yesky.com/counter.shtml?CID=54197&AID=-1&refer=noscriptcounter&cur=noscriptcounter" border='0' width='0' height='0'/>
</noscript>

模板无忧-MB5u__com

收藏CSS+DIV设计实例:多个DIV排列时居中订阅Web标准教程文章更新复制文章信息 分享给你的好友查看所有CSS+DIV设计实例:多个DIV排列时居中评论返回Web标准教程列表
  • 1.请勿发表广告及违法言论.
  • 2.CSS+DIV设计实例:多个DIV排列时居中,版权归原作者.
  • 昵称: 验证: 看不清楚?请点击这里刷新.
loading.. 评论加载中....

Web标准教程搜索

最新Web标准教程