让DIV覆盖整个HTML页面,而不仅仅是浏览器屏幕? [英] Getting a DIV to cover the whole HTML page, not just the browserscreen?

查看:272
本文介绍了让DIV覆盖整个HTML页面,而不仅仅是浏览器屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很抱歉,如果这是一个重复的帖子,我找不到我问题的早期

版本。


我有一个DIV,使用在HTML

页面的thtop定义的CSS类。类的高度和宽度设置为100%。我想要

DIV来覆盖整个HTML页面,但它只覆盖浏览器

屏幕。如何让它覆盖整个HTML页面?

My apologies if this is a duplicate post, I can''t find the earlier
version of my question.

I have a DIV that uses a CSS class defined at the thtop of an HTML
page. The height and width of the class are set to 100%. I want the
DIV to cover the whole HTML page, but it only covers the browser
screen. How can I make it cover the whole HTML page?

推荐答案

Steve写道:
Steve wrote:

我很抱歉,如果这是一个重复的帖子,我找不到我问题的早期

版本。


我有一个使用在HTML

页面的thtop定义的CSS类的DIV。类的高度和宽度设置为100%。我想要

DIV来覆盖整个HTML页面,但它只覆盖浏览器

屏幕。如何使其覆盖整个HTML页面?
My apologies if this is a duplicate post, I can''t find the earlier
version of my question.

I have a DIV that uses a CSS class defined at the thtop of an HTML
page. The height and width of the class are set to 100%. I want the
DIV to cover the whole HTML page, but it only covers the browser
screen. How can I make it cover the whole HTML page?



Simploy so _not_定义div的高度。

它的高度将是_auto_。


-

Gus

Simploy so _not_ define the div''s height.
Its height will then be _auto_.

--
Gus


Gus Richter写道:
Gus Richter wrote:

史蒂夫写道:
Steve wrote:

>如果这是一个重复的帖子我很抱歉,我找不到我问题的早期
版本。

我有一个DIV,它使用在HTML页面上定义的CSS类。类的高度和宽度设置为100%。我希望
DIV能够覆盖整个HTML页面,但它只涵盖了浏览器的屏幕。如何使其覆盖整个HTML页面?
>My apologies if this is a duplicate post, I can''t find the earlier
version of my question.

I have a DIV that uses a CSS class defined at the thtop of an HTML
page. The height and width of the class are set to 100%. I want the
DIV to cover the whole HTML page, but it only covers the browser
screen. How can I make it cover the whole HTML page?



Simploy所以_not_定义div的高度。

它的高度将是_auto_。


Simploy so _not_ define the div''s height.
Its height will then be _auto_.



对不起,它应该是:


只需要_not_定义div的高度。

它的高度将是_auto_。


-

Gus

自我注意:不要超过规定!

Sorry, it should read:

Simply do _not_ define the div''s height.
Its height will then be _auto_.

--
Gus
Note to self: Do not take more than prescribed!


Steve写道:
Steve wrote:

如果这是一个重复的帖子,我道歉找不到我问题的早期

版本。


我有一个DIV,它使用在HTML的底部定义的CSS类/>
页面。类的高度和宽度设置为100%。我想要

DIV来覆盖整个HTML页面,但它只覆盖浏览器

屏幕。如何让它覆盖整个HTML页面?
My apologies if this is a duplicate post, I can''t find the earlier
version of my question.

I have a DIV that uses a CSS class defined at the thtop of an HTML
page. The height and width of the class are set to 100%. I want the
DIV to cover the whole HTML page, but it only covers the browser
screen. How can I make it cover the whole HTML page?



如果这个DIV直接位于BODY内部,其他所有东西都在它内部的
,它将覆盖整个HTML页面,而不需要设置

的高度。

If this DIV sits directly inside the BODY and everything else sits
inside it, it WILL cover the whole HTML page, without you needing to set
the height at all.


这篇关于让DIV覆盖整个HTML页面,而不仅仅是浏览器屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆