网页制作 
首页 > 网页制作 > 浏览文章

用css实现十字的布局示例代码

(编辑:jimmy 日期: 2024/9/22 浏览:3 次 )

复制代码代码如下:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style>
.wrap{ margin:100px 100px 0 100px; width:600px; height:200px; overflow:hidden;}
.one{ float:left; width:100px; height:100px; border:1px dashed #ccc; border-right:0 none; margin-left:-2px; margin-top:-1px; border-bottom:0;}
</style>
</head>
<body>
<div class="wrap">
<div class="one"></div>
<div class="one"></div>
<div class="one"></div>
<div class="one"></div>
<div class="one"></div>
<div class="one"></div>
<div class="one"></div>
<div class="one"></div>
<div class="one"></div>
<div class="one"></div>
<div class="one"></div>
<div class="one"></div>
</div>
</body>
</html>
上一篇:css实现div水平、垂直居中兼容chrome、ie8
下一篇:用css3实现当鼠标移进去时当前亮其他变灰效果
一句话新闻
Windows上运行安卓你用过了吗
在去年的5月23日,借助Intel Bridge Technology以及Intel Celadon两项技术的驱动,Intel为PC用户带来了Android On Windows(AOW)平台,并携手国内软件公司腾讯共同推出了腾讯应用宝电脑版,将Windows与安卓两大生态进行了融合,PC的使用体验随即被带入到了一个全新的阶段。
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网 SiteMap