纯html模板,好几个网页共用底部的footer,因为页面长度不一样,如何当页面内容比较少的时候

https://img.mukewang.com/5c29ce150001933d11340848.jpg

如果固定到底部的话,页面内容比较多的时候。就会挡住东西,浮动也不好看

慕森卡
浏览 923回答 1
1回答

米脂

<!DOCTYPE html><html&nbsp; style="height: 100%"><head>&nbsp; &nbsp; <meta charset="UTF-8">&nbsp; &nbsp; <meta name="viewport" content="width=device-width, initial-scale=1.0">&nbsp; &nbsp; <meta http-equiv="X-UA-Compatible" content="ie=edge">&nbsp; &nbsp; <title>Document</title></head><body style="height: 100%">&nbsp; &nbsp; <div id="a" style="background-color: red; min-height: 90%"></div>&nbsp; &nbsp; <div id="b" style="background-color: blue; height: 10%"></div></body></html>
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript