[英]100% height div that sits inside a fixed element?
<header>
<p>
header stuff
</p>
<div id="dropdown">
<p>
a
</p>
<p>
b
</p>
<p>
c
</p>
</div>
</header>
I have a header that's fixed. 我有一个固定的标题。 Inside this I have a dropdown which i want to be 100% height of the page, yet setting height to 100% makes it 100% height of the parent element.
在此内部,我有一个下拉菜单,我想将其设置为页面的100%高度,但是将height设置为100%会使它成为父元素的100%高度。 Is there anyway to set it to be 100% of the page?
无论如何,将其设置为页面的100%?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.