垂直布局(标题-菜单-内容-底部)
我正在将 Flex 更改为 HTML / CSS / Javascript,但我发现一些困难。
如果我可以创建相同的液体布局和 xbrowser(是的...我知道),那就太好了:)
我遵循了下一个教程:http://www.cssplay.co.uk/layouts/flexible-3column-fix-flex-fix.html
但只有页脚的事情快要杀了我。我可以将其堆叠到底部以使内容为 100% 吗?
谢谢!!!!
I'm changing Flex for HTML / CSS / Javascript but I'm finding some difficulties on my way.
Would be great if I could create the same liquid layouts and xbrowser ( yes... I know ) :)
I followed the next tutorial: http://www.cssplay.co.uk/layouts/flexible-3column-fix-flex-fix.html
But there is only on thing is killing me, the footer. Can I stack it to the bottom making the content 100% ?
Thanks!!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以尝试这样的解决方案: http://jsfiddle.net/steweb/wfmGN/
我用过这个技巧适用于很多网站,我很满意:D
标记:
css:
You could try a solution like this: http://jsfiddle.net/steweb/wfmGN/
I used this trick for lots of websites and I'm satisfied :D
markup:
css:
您可以使用粘性页脚方法,您可以在此处找到 http://www.cssstickyfooter.com/
You can use the sticky footer method that you can find here http://www.cssstickyfooter.com/
由于 CSS 的怪癖,很难让页脚上方的内容达到您所期望的 100%。大多数浏览器会将其渲染为窗口高度的 100%,而不是页眉和页脚之间的剩余空间。由于该高度可能相差很大,因此您不能对其使用包罗万象的方法。
Because of the quirks of CSS, it is very difficult to get the content above your footer to be the 100% that you expect. Most browsers will render it as 100% of the window height, not the remaining space between the header and footer. And as that height can differ greatly, you can't use a catch-all on it.