https://i.stack.imgur.com/y86aU.jpg
Above Screen-shot I want to align the center. My Parent division class name main-div
.main-div {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.