css - 对引导程序中的响应图像的响应形式
问题描述
我正在尝试向响应式背景图像添加响应式表单。我希望表单位于图像中的空白区域,并在调整窗口大小时在空白区域本身调整大小。下面是图像和表单文本的 CSS 代码。
.image {
background-image: url("src/assets/img/login_image.png");
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
height: 100vh;
}
.form-text {
position: absolute;
right: 100px;
bottom: 300px;
align-items: center;
justify-items: center;
}
解决方案
推荐阅读
- ios - Xcode UI 测试用例,在 UINavigationController 中有许多控制器的 XCtestcase
- python - Python Django 显示公历日期
- vuejs2 - 如何以交互方式显示来自商店的数据
- python - Python加载json帮助器方法不起作用
- reactjs - 在小屏幕尺寸上获得超过最大更新深度
- python - pyqt5选项卡区域没有填满整个可用空间
- google-apps-script - 复制行并将值粘贴到另一个工作表
- python - 输出 \n 而不是换行
- python - aws rekognition 打印边界框
- node.js - 在子域中安装 create-react-app