萌新求助
html吧
全部回复
仅看楼主
level 2
请问如何让黑圆位于黑框中心位置,要用到那些元素。跪谢各位大佬[乖]
2018年07月11日 04点07分 1
level 10
.square{
position: relative;
}
.circle{
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
2018年07月11日 06点07分 3
请问为什么已经加了top left 属性还要加下面xy轴属性
2018年07月11日 15点07分
level 9
楼上答案可以
2018年07月11日 07点07分 4
level 3
.circle
text-align:center
line-height:父元素高度
2018年07月11日 23点07分 5
level 3
.circle要换成父元素的.square
2018年07月11日 23点07分 6
level 5
把你的代码打出来
2018年07月12日 02点07分 7
1