首页 技术 正文
技术 2022年11月15日
0 收藏 576 点赞 2,966 浏览 1018 个字
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="decsription" content="一列布局变混合布局" />
  6. <title>一列布局混合布局</title>
  7. <style type="text/css">
  8. body {
  9. margin: 0;
  10. padding: 0; /*清楚默认样式*/
  11. }
  12. .top {
  13. height: 100px;
  14. background: blue;
  15. }
  16. .nav{height:100px;width:1000px;background:#f60;margin:0 auto;}
  17. .main {
  18. width: 800px;
  19. height: 600px;
  20. background: #ccc;
  21. margin: 0 auto;
  22. }
  23. .left{width:200px;height:600px;background:yellow;float:left;}
  24. .right{width:600px;height:600px;background:#369;float:right;}
  25. .sub_l{width:400px;height:600px;background:#218;float:left;}
  26. .sub_r{width:200px;height:600px;background:green;float:right;}
  27. .sub_r_up{width:200px;height:200px;background:#765;}
  28. .sub_r_down{width:200px;height:300px;background:red;}
  29. .bottom {
  30. width: 800px;
  31. height: 100px;
  32. background: #b0b;
  33. margin: 0 auto;
  34. }
  35. </style>
  36. </head>
  37. <body>
  38. <div class="top">
  39. <div class="nav"></div>
  40. </div>
  41. <div class="main">
  42. <div class="left"></div>
  43. <div class="right">
  44. <div class="sub_l"></div>
  45. <div class="sub_r">
  46. <div class="sub_r_up"></div>
  47. <div class="sub_r_down"></div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="bottom"></div>
  52. </body>
  53. </html>
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,491
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,907
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,740
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,493
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:8,132
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:5,294