计算机网络CSS单选难度 3真题改编 · 2024
1715. 分析以下代码
CSS:
.container {
position: relative;
width: 500px;
height: 300px;
background-color: #f5f5f5;
}
.box {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width:
200px;
height: 200px;
background-color: #ddd;
}
下列哪个是 box 元素的位置
练习本题 ›