Home  >  Article  >  Web Front-end  >  div如何设置才能适应屏幕大小的变化?_html/css_WEB-ITnose

div如何设置才能适应屏幕大小的变化?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:39:361895browse

rt,还有一个问题需要注意:
页面上面的header的高度是固定不变的,而下面的map区域是变化的,高度或宽度。
我设置过高度和宽度都为100%,并在body{}中设置overflow为hiden。却出现了下面的问题。

就是下面有一部分没有显示出来,没出来的部分恰好等于header的高度。
要怎样设置才能使map的div正常显示出来?


回复讨论(解决方案)

用绝对定对position absolution

用绝对定对position absolution


试过了,不可以。木办法了,我只能使用jQuery来计算了。谢谢了
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn