3
我有我的website,如果向上滚动,您会看到标题正好在中心线上方。我无法弄清楚如何让它和紫色的一样。有任何想法吗?标题不垂直对齐
代码绿色页标题:
.main section.page3 h1 {
text-align: center;
padding: 0;
margin-bottom: 0;
font-size: 70px;
letter-spacing: -1px;
color: black;
}
,紫页:
.main section.page2 > img {
position: absolute;
top: -300px;
left: 50%;
margin-left: -1095px;
我有什么:
我想要什么:
非常感谢。我一直在玩它几个小时。 – Alex
@ user3217296不客气,很高兴帮助。 –
@ user3217296然后您应该将此答案标记为已接受。 –