用css实现十字的布局示例代码
2014-04-08 17:36
671 查看
<!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>
相关文章推荐
- div+css布局的图片连续滚动js实现代码
- 用纯CSS实现禁止鼠标点击事件示例代码
- DIV+CSS三列式布局的实现代码
- CSS+DIV网页布局(黄冈网校首页布局)示例代码
- XHTML+css弹性+固宽布局 网页代码示例
- 纯html+css+javascript实现楼层跳跃式的页面布局(实例代码)
- 【荐】JavaScript+CSS技术实现能覆盖SELECT的图片放大(放大镜)示例代码
- css页面左中右分栏布局两种方式示例代码
- css实现文字层浮在图片之上示例代码
- div+css布局的图片连续滚动js实现代码
- div+css网页布局(示例代码)
- html+css+javascript实现列表循环滚动示例代码
- div+css 实现tabs标签的示例代码
- CSS 网页布局中的图文列表实现代码
- css span右对齐 css li标签中span日期靠右布局实现代码
- 利用div+css实现几种经典布局的详解,样式以及代码!
- 纯CSS代码实现翻页(两个示例)
- XHTML,CSS 秘密技术 定义列表代替实现页面的布局,表单提交 操作 附原代码。
- (转载)用css来实现十字的布局
- CSS导航布局中当前页面的具体实现demo示例