Html 内容';在页脚div上的文本

Html 内容';在页脚div上的文本,html,css,Html,Css,我有下面的HTML代码,如果我的div中有很多名为content的文本,那么footer div不会向下移动,文本会覆盖footer div 要查看问题,请检查此链接 你能告诉我怎么解决这个问题吗 网页主标题 菜单 HTML CSS JavaScript 超文本标记语言(HTML)是用于显示网页和可在web浏览器中显示的其他信息的主要标记语言。 HTML是以HTML元素的形式编写的,HTML元素由包含在网页内容中的尖括号(如)中的标记组成。HTML标记通常成对出现,如和,尽管有些标记(例如

我有下面的HTML代码,如果我的div中有很多名为content的文本,那么footer div不会向下移动,文本会覆盖footer div

要查看问题,请检查此链接

你能告诉我怎么解决这个问题吗


网页主标题
菜单
HTML
CSS
JavaScript 超文本标记语言(HTML)是用于显示网页和可在web浏览器中显示的其他信息的主要标记语言。 HTML是以HTML元素的形式编写的,HTML元素由包含在网页内容中的尖括号(如)中的标记组成。HTML标记通常成对出现,如和,尽管有些标记(例如,称为空元素)是不成对的。成对的第一个标记是开始标记,第二个标记是结束标记(也称为开始标记和结束标记)。在这些标记之间,web设计师可以添加文本、标记、注释和其他类型的基于文本的内容。web浏览器的用途是读取HTML文档并将它们组合成可见或可听见的网页。浏览器不显示HTML标记,但使用这些标记来解释页面内容。 版权所有©W3Schools.com

您可以删除content div的height元素


请参阅:

您可以删除content div的height元素

请参阅:

正在工作

固定高度
移除到
内容
分区。它将工作。

工作

固定高度
删除到
内容
分区。它将正常工作

    <div id="container" style="width:500px">

        <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:200px;width:100px;float:left;">
            <b>Menu</b><br>
            HTML<br>
            CSS<br>
            JavaScript
        </div>

        <div id="content" style="background-color:#EEEEEE;width:400px;float:left;">
            HyperText Markup Language (HTML) is the main markup language for displaying web pages and other information that can be displayed in a web browser.
            HTML is written in the form of HTML elements consisting of tags enclosed in angle brackets (like <html>), within the web page content. HTML tags most commonly come in pairs like <h1> and </h1>, although some tags, known as empty elements, are unpaired, for example <img>. The first tag in a pair is the start tag, the second tag is the end tag (they are also called opening tags and closing tags). In between these tags web designers can add text, tags, comments and other types of text-based content. The purpose of a web browser is to read HTML documents and compose them into visible or audible web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page.

        </div>

        <div id="footer" style="background-color:#FFA500;clear:both;text-align:center;">
            Copyright © W3Schools.com
        </div>

    </div>

</body>