为了账号安全,请及时绑定邮箱和手机立即绑定

css3怎样实现屏幕自适应

css3怎样实现屏幕自适应

翻过高山走不出你 2019-03-20 10:13:47
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>


 


查看完整回答
反对 回复 2019-03-22
  • 2 回答
  • 0 关注
  • 959 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号