【发布时间】:2016-05-08 16:12:29
【问题描述】:
我正在尝试制作我的网站,但屏幕大小有问题。我想让它有点响应,我的布局是 - 顶部的标题,然后是菜单和页脚,但它的宽度为 25%,我不知道如何将其调整为 100% 的高度。我希望它看起来像这样: http://s32.postimg.org/9pa325s3p/img.png
我的代码:
<header>header </header>
<section id="menu">menu</section>
<footer>footer </footer>
css 代码并不重要。
【问题讨论】:
-
使 html 正文高度 100% 见这里stackoverflow.com/questions/13609531/…
-
我需要将header(40px)+menu(?)+footer(40px)的高度设置为100%。
-
选择器(高度: calc(100% - 80px); }
标签: html css positioning floating