我试图理解为什么在Mozilla中这个文字是not centered但是只要你调整窗口大小,它就会在right position重置。
.shape {
position: fixed;
display: flex;
right: 20%;
width: 58%;
height: 62%;
background: #E8E8E8;
color: black;
flex-direction: column;
align-items: center;
top: -100%;
-webkit-animation: slide 1s forwards;
animation: slide 1s forwards;
}
.text {
position: absolute;
bottom: 0;
text-align: center;
font-size: 1.5vw;
font-family: "Basic", serif;
text-decoration: none;
padding-bottom: 4%;
padding-left: 12%;
padding-right: 12%;
transition: 0.1s ease;
}
这是网站
marcotronconi.com/about.html
P.S。抱歉这个愚蠢的问题,但我真的没有编码,谢谢