怎么让网页 按比例显示大小
时间:2011-07-11
来源:互联网
比如我现在有
<div id="head"></div>
<div id="content"></div>
<div id="footer"></div>
我想要固定head在最顶部, 然后footer始终在最底部, 而中间content根据不通浏览器head与footer的间隔自适应高度
不令赐教 谢谢了
<div id="head"></div>
<div id="content"></div>
<div id="footer"></div>
我想要固定head在最顶部, 然后footer始终在最底部, 而中间content根据不通浏览器head与footer的间隔自适应高度
不令赐教 谢谢了
作者: yyszj0911 发布时间: 2011-07-11
head,footer绝对定位,content什么都不用定义,width设为100%即可
作者: brainwkernighan 发布时间: 2011-07-11
引用 1 楼 brainwkernighan 的回复:
head,footer绝对定位,content什么都不用定义,width设为100%即可
head{position: absolutehead,footer绝对定位,content什么都不用定义,width设为100%即可
top:0}
footer{position: absolute
bottom:0}
这样?
作者: yyszj0911 发布时间: 2011-07-11
引用 2 楼 yyszj0911 的回复:
引用 1 楼 brainwkernighan 的回复:
head,footer绝对定位,content什么都不用定义,width设为100%即可
head{position: absolute
top:0}
footer{position: absolute
bottom:0}
这样?
对 引用 1 楼 brainwkernighan 的回复:
head,footer绝对定位,content什么都不用定义,width设为100%即可
head{position: absolute
top:0}
footer{position: absolute
bottom:0}
这样?
作者: xuexiaodong2009 发布时间: 2011-07-11
引用 3 楼 xuexiaodong2009 的回复:
引用 2 楼 yyszj0911 的回复:
引用 1 楼 brainwkernighan 的回复:
head,footer绝对定位,content什么都不用定义,width设为100%即可
head{position: absolute
top:0}
footer{position: absolute
bottom:0}
这样?
对
我要高度自适应阿 width 100%不是height? 引用 2 楼 yyszj0911 的回复:
引用 1 楼 brainwkernighan 的回复:
head,footer绝对定位,content什么都不用定义,width设为100%即可
head{position: absolute
top:0}
footer{position: absolute
bottom:0}
这样?
对
作者: yyszj0911 发布时间: 2011-07-11
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28