猿问

css3怎样实现屏幕自适应

css3怎样实现屏幕自适应


翻过高山走不出你
浏览 879回答 2
2回答

阿波罗的战车

一则好像会出现竖向滚动条,二则,一旦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>&nbsp;
随时随地看视频慕课网APP

相关分类

CSS3
我要回答