css - 尝试使用 Z-Index 进行堆叠
问题描述
我刚刚开始一个新项目,但在使用z-index
CSS 中的函数时遇到了问题。无论我尝试什么,它都无法正常工作。我已经尝试交换两个 div 的值,z-index
但它仍然无法正常工作。
#outerbox {
position:absolute;
height:700px;
width:700px;
background-color:darkgrey;
left:570px;
top:125px;
z-index:1;
}
#innerbox {
position:relative;
height:680px;
width:680px;
background-color:grey;
display:grid;
margin: 0 auto;
top:10px;
z-index:0;
}
解决方案
推荐阅读
- python - 发布字典列表并更新或创建
- java - 休眠查询显示旧值
- java - 使用 Java 对 FTP 文件进行校验和
- sql - PostgreSQL 缺少 FROM-CLAUSE 条目
- javascript - 两台不同服务器上的相同联系表格,但其中一个不发送
- excel - 在 PowerQuery 中将行转换为列。Transpose & Pivot 方法没有给出正确的结果
- flutter - 如何将参数传递给有状态的小部件?
- java - Java模型,摆脱多张地图
- javascript - JQuery 'animate' 在 2 次调用后停止工作
- python - 使用 setUpTestData 的 Django 测试不会保留测试之间的更改