我知道它已被问过很多次,但我仍然无法找到解决此问题的方法。这是我所拥有的:JsFiddle
<!DOCTYPE html>
<html>
<body>
<div id="container" style="width:auto">
<div id="header" style="background-color:#FFA500;">
<h1 style="margin-bottom:0;">Main Title of Web Page</h1></div>
<div id="menu" style="background-color:#FFD700;height:100%;width:auto;float:left;">
<b>Menu</b><br>
HTML<br>
CSS<br>
JavaScript</div>
<div id="content" style="background-color:#EEEEEE;height:100%;width:auto;float:left;">
test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content </div>
<div id="footer" style="background-color:#FFA500;clear:both;text-align:center;">
Copyright © something</div>
</div>
</body>
</html>
我们的问题是内容在菜单下。我尝试了一切以修复它,但这似乎是不可能的。我很确定我错过了一些小东西。
编辑:内容应该在菜单旁边,菜单应该有 100% 的高度