html手机3列自适应
2016-04-22 09:46
316 查看
<style>
#left {
width:100px; background-color:blue;
height:100px; float:left;
}
#right {
width:50px; background-color:yellow;
height:100px;
float:right;
}
#main {
background-color:red; height:100%;
}
</style>
<div style="width:100%">
<div id="left">left </div>
<div id="right">right</div>
<!--main要写到最后一个-->
<div id="main">mian</div>
</div>
#left {
width:100px; background-color:blue;
height:100px; float:left;
}
#right {
width:50px; background-color:yellow;
height:100px;
float:right;
}
#main {
background-color:red; height:100%;
}
</style>
<div style="width:100%">
<div id="left">left </div>
<div id="right">right</div>
<!--main要写到最后一个-->
<div id="main">mian</div>
</div>
相关文章推荐
- html标签一般命名规则
- html标签元素分类-行内元素和块级元素
- 5-HTML DOM简介和新特性
- html布局
- 期中HTML代码及技术博客
- HTML
- 获取html 中的所有图片 正则表达式
- Ajax 请求返回 html 页面并展示
- 5秒后跳到另外一个html里面
- html学习笔记——html基本结构(head)
- Html学习笔记3
- html特殊符号
- "Content-Type" content="text/html; charset=utf-8"中content="text/html是啥意思呢?
- HTML中target属性解析
- html+jq实现简单的图片轮播
- Notepad++连接QQ浏览器
- gulp教程之gulp-htmlmin
- HTML里的id等属性命名需要注意
- lkmusic项目之(二)基本html结构
- 使用postMessage实现跨窗口消息传递