javascript - 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?
解决方案
.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.
推荐阅读
- javascript - 反应聊天应用程序“无法读取 null 的属性‘键’”?
- android - 日期比较显示错误 java.lang.IllegalArgumentException: Cannot format given Object as a Date
- google-kubernetes-engine - 一旦我们使用 HELM 安装,Kubernetes-Dashboard Pod 就无法工作
- php - 如何使用 mysqli_fetch_assoc 从数据库中获取数据?
- android - 在activity中访问BroadcastReceiver方法onReceive()
- android - net::ERR CLEARTEXT_NOT_PERMITTED 页面显示在我的 Android 9.0 移动网络应用程序中,使用 phonegap
- sql - 基于类型的动态表名
- ssl - 具有自定义域名的 SaaS 应用程序的 SSL 设置
- swift - TableviewCell中的Collectionview,数据重复
- reactjs - 如何在父组件中定义函数并将它们传递给相应的子组件?