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

  发布时间:2014-04-08 17:36:32   作者:佚名   我要评论
这篇文章主要介绍了如何使用css来实现十字的布局,需要的朋友可以参考下
(福利推荐:【腾讯云】服务器最新限时优惠活动,云服务器1核2G仅99元/年、2核4G仅768元/3年,立即抢购>>>:9i0i.cn/qcloud

(福利推荐:你还在原价购买阿里云服务器?现在阿里云0.8折限时抢购活动来啦!4核8G企业云服务器仅2998元/3年,立即抢购>>>:9i0i.cn/aliyun


复制代码
代码如下:

<!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=gbk" />
<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>

相关文章

最新评论

?


http://www.vxiaotou.com