css3怎样实现屏幕自适应
2 回答
阿波罗的战车
TA贡献1862条经验 获得超6个赞
一则好像会出现竖向滚动条,
二则,一旦content中内容多了……,
如果我没体会错,您是这个意思:
XML/HTML code?
<html>
<head>
<title>自适应高度测试</title>
</head>
<style>
html body {
height: 100%;
}
.header {
height: 100px;
}
.footer {
position: fixed;
bottom: 0;
}
</style>
<body>
<div class="header">This is header</div>
<div class="content">This is content</div>
<div class="footer">This is footer</div>
</body>
</html>
- 2 回答
- 0 关注
- 959 浏览
添加回答
举报
0/150
提交
取消
