- 정확한 동작방식은 모름..
1
2
3
4
5
6
|
.center {
position: absolute;
top: 35%; /* position the top edge of the element at the middle of the parent */
left: 50%; /* position the left edge of the element at the middle of the parent */
transform: translate(-50%, -50%); /* This is a shorthand of translateX(-50%) and translateY(-50%) */
}
| cs |
댓글 없음:
댓글 쓰기