页面布局 --- 两列自适应布局
来源:互联网 发布:淘宝客用户主页怎么填 编辑:程序博客网 时间:2024/06/03 15:48
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>HTML5 Example</title> <style type="text/css"> *{ margin:0; padding:0; } body{ margin:50px; } .row{ width:100%; background:#000; } .side{ width:300px; height:500px; background:#C0392B; } .main{ width:100%; height:500px; background:#E74C3C; } .main h1{ font-size:82px; } .main p{ font-size:26px; } .side img{ margin-bottom:30px; } .side button{ background:#F39C12; border:none; border-radius:4px; padding:5px 40px; margin-top:30px; font-size:18px; } .side{ padding:50px; } .main{ padding:100px; } .side, .main{ text-align:center; font-family:"Comic Sans MS", cursive; color:#FFF; box-sizing:border-box; } .row{ position:relative; } .side{ position:absolute; } .row{ padding-left:300px; box-sizing:border-box; } .side{ left:0; } </style> </head> <body> <div class="row"> <div class="side"> <img src="side.png"alt="order"> <p>In restaurants, pizza can be baked in an oven with stone bricks above the heat source, an electric deck oven, a conveyor belt oven or a wood- or coal-fired brick oven.</p> <button>Order</button> </div> <div class="main"> <img src="pizza.png"alt="pizza"> <h1>Pizza</h1> <p>Various types of ovens are used to cook them and many varieties exist.</p> </div> </div> </body> </html>
阅读全文
0 0
- 页面布局 --- 两列自适应布局
- 两列自适应布局
- 两列自适应布局
- 页面布局:两列布局
- 两列布局宽度自适应
- 实现一个自适应布局 两列布局
- 页面布局 --- 三列自适应布局
- 两列或三列自适应布局
- 页面布局 --- 两列均分布局
- 两列不定宽自适应布局
- 两列布局(固定+自适应)
- 两列自适应和三列自适应布局
- CSS布局之两列布局一列固定一列自适应
- css3弹性布局中的两列宽度自适应布局和两列右列宽度自适应布局
- CSS两列及三列自适应布局方法整理
- Flex布局实现圣杯布局,左右两列固定、中间列自适应的三列式布局
- 页面两列布局高度填满
- 多列自适应布局
- https的认证
- 数据结构与算法C++描述(12)---堆及最大堆
- ArcEngine 几何数据检查与修复
- Redis 列表(List)
- 文本框值变动时触发事件
- 页面布局 --- 两列自适应布局
- vi命令学习
- vue学习第12天,
- sigslot
- android项目从零开始 App 上传 Google play(二)提交应用
- 论文阅读笔记网址
- 算法爱好者——逆序对 ? 待解决
- Redis 集合(Set)
- CodeForces 875B ( Sorting the Coins) 难度蛮大的一道题目 题目说了一堆主要还是找规律