页面布局 --- 格子布局
来源:互联网 发布:淘宝账号注销不了 编辑:程序博客网 时间:2024/05/16 04:52
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>HTML5 Example</title> <style type="text/css"> body { background:#FFF; margin:50px; font-family:sans-serif; } section{ width:100%; min-width:500px; } article{ box-sizing:border-box; width:50%; padding:20px; text-align:center; float:left; border-bottom:1px solid rgba(0,0,0,.2); border-right:1px solid rgba(0,0,0,.2); } section{ border-top:1px solid rgba(0,0,0,.2); border-left:1px solid rgba(0,0,0,.2); } section::after{ content:""; display:table; clear:both; } article h1{ font-size:32px; margin:10px 0; color:#666; } article p{ font-size:15px; margin-bottom:0 0 10px; color:#999; } </style> </head> <body> <section> <article> <h1>Ulysses</h1> <p>Soaring through the galaxies</p> <img src="pic1.png"alt="image of Ulysses"> </article> <article> <h1>Dallas</h1> <p>Rollin' down to Dallas</p> <img src="pic2.png"alt="image of Dallas"> </article> <article> <h1>McKay</h1> <p>McKay and his best friend</p> <img src="pic3.png"alt="image of McKay"> </article> <article> <h1>Thunder</h1> <p>Thundercats on the move</p> <img src="pic4.png"alt="image of Thunder"> </article> </section> </body> </html> <!doctype html> <html> <head> <meta charset="UTF-8"> <title>HTML5 Example</title> <style type="text/css"> body { background:#FFF; margin:50px; font-family:sans-serif; } section{ width:100%; min-width:500px; } article{ box-sizing:border-box; width:50%; padding:20px; text-align:center; float:left; border-bottom:1px solid rgba(0,0,0,.2); border-right:1px solid rgba(0,0,0,.2); } section{ border-top:1px solid rgba(0,0,0,.2); border-left:1px solid rgba(0,0,0,.2); } section::after{ content:""; display:table; clear:both; } article h1{ font-size:32px; margin:10px 0; color:#666; } article p{ font-size:15px; margin-bottom:0 0 10px; color:#999; } article:nth-child(3){ width:100%; } </style> </head> <body> <section> <article> <h1>Ulysses</h1> <p>Soaring through the galaxies</p> <img src="pic1.png"alt="image of Ulysses"> </article> <article> <h1>Dallas</h1> <p>Rollin' down to Dallas</p> <img src="pic2.png"alt="image of Dallas"> </article> <article> <h1>McKay</h1> <p>McKay and his best friend</p> <img src="pic3.png"alt="image of McKay"> </article> </section> </body> </html>
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>HTML5 Example</title> <style type="text/css"> body { background:#FFF; margin:50px; font-family:sans-serif; } section{ width:100%; min-width:500px; } article{ box-sizing:border-box; width:50%; padding:20px; text-align:center; float:left; border-bottom:1px solid rgba(0,0,0,.2); border-right:1px solid rgba(0,0,0,.2); } section{ border-top:1px solid rgba(0,0,0,.2); border-left:1px solid rgba(0,0,0,.2); } section::after{ content:""; display:table; clear:both; } article h1{ font-size:32px; margin:10px 0; color:#666; } article p{ font-size:15px; margin-bottom:0 0 10px; color:#999; } article{ height:270px; } article:nth-child(2){ height:540px; padding-top:150px; } article:nth-child(3){ margin-top:-270px; } </style> </head> <body> <section> <article> <h1>Ulysses</h1> <p>Soaring through the galaxies</p> <img src="pic1.png"alt="image of Ulysses"> </article> <article> <h1>Dallas</h1> <p>Rollin' down to Dallas</p> <img src="pic2.png"alt="image of Dallas"> </article> <article> <h1>McKay</h1> <p>McKay and his best friend</p> <img src="pic3.png"alt="image of McKay"> </article> </section> </body> </html>
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>HTML5 Example</title> <style type="text/css"> body { background:#FFF; margin:50px; font-family:sans-serif; } section{ width:100%; min-width:500px; } article{ box-sizing:border-box; width:50%; padding:20px; text-align:center; float:left; border-bottom:1px solid rgba(0,0,0,.2); border-right:1px solid rgba(0,0,0,.2); } section{ border-top:1px solid rgba(0,0,0,.2); border-left:1px solid rgba(0,0,0,.2); } section::after{ content:""; display:table; clear:both; } article h1{ font-size:32px; margin:10px 0; color:#666; } article p{ font-size:15px; margin-bottom:0 0 10px; color:#999; } article{ height:270px; } article:nth-child(2){ height:540px; padding-top:150px; } article:nth-child(3){ margin-top:-270px; } </style> </head> <body> <section> <article> <h1>Ulysses</h1> <p>Soaring through the galaxies</p> <img src="pic1.png"alt="image of Ulysses"> </article> <article> <h1>Dallas</h1> <p>Rollin' down to Dallas</p> <img src="pic2.png"alt="image of Dallas"> </article> <article> <h1>McKay</h1> <p>McKay and his best friend</p> <img src="pic3.png"alt="image of McKay"> </article> </section> </body> </html>
阅读全文
0 0
- 页面布局 --- 格子布局
- 格子布局
- css布局之格子布局
- 自定义控件格子布局:CellLayout
- 页面布局 --- 瀑布布局
- 页面布局
- 页面布局
- 页面布局
- 页面布局
- 页面布局
- 页面布局
- 页面布局
- 页面布局
- 页面布局
- 页面布局
- 页面布局
- 页面布局
- android自定义viewgroup实现等分格子布局
- 程序循环
- Requests: 让 HTTP 服务人类
- [2017纪中10-30]Graph 最小生成树
- xml(2)
- MySQL周测题
- 页面布局 --- 格子布局
- Hive学习总结
- LightOJ1128 Greatest Parent
- 文章标题
- 【NOIP模拟】 (10.30) T2 游戏
- linux下使用百度云python客户端
- 使用Spring+Junit4.4进行测试
- mybatis中mysql和oracle的区别
- 游戏开发学习笔记(七)开发背包系统