简单记录一下,每次用都会忘记。
用于一个没有父级的元素 ,定位后水平居中,上代码、
.g-page-btn-fixed {
position: fixed;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
}
简单记录一下,每次用都会忘记。
用于一个没有父级的元素 ,定位后水平居中,上代码、
.g-page-btn-fixed {
position: fixed;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
}