![](/img/trans.png)
[英]How to make a div full screen and expand with its content as it overflows
[英]How to make div expand to screen resolution not content?
這是我正在開發的網站,右側邊欄應該使用height:100%;
擴展到不同屏幕分辨率的底部height:100%;
但由於某些我無法識別的原因,它只會擴展到其中的內容。 任何人都可以找到解決方案嗎?
如果可能的話,從網站上獲取代碼,如果沒有,請讓我發布。
您還需要為html和body添加完整高度:
html, body{
height: 100%;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.