首页 > 解决方案 > ReactJS Background Image not Showing

问题描述

The code inside the image below suppose give me the background. But it did not work. I don't get it why?

Image to the problem

标签: javascripthtmlcssreactjs

解决方案


.sign-in-container does not get 100% elevation. Because React have Root and you component inside root div on DOM. Root's height is not 100%. It is "auto".

You have to use "height: 100vh" instead of height: "100%" this project.


推荐阅读