Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickyangtpe authored Feb 26, 2024
1 parent b43adfe commit 3971117
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,25 @@
}

/* 添加样式以在按钮上方和下方显示额外文本 */
#title-text{
#title-text {
position: absolute;
left: 50%;
transform: translateX(-50%);
color: white;
font-size: 50px;
}

#title-text {
top: calc(55% - 58px); /* 将文本放置在按钮上方 */
@media (min-width: 768px) {
#title-text {
font-size: 25px;
top: calc(50% - 58px); /* 将文本放置在按钮上方 */
}
}

@media (max-width: 767px) {
#title-text {
top: calc(55% - 58px); /* 将文本放置在按钮上方 */
}
}
</style>
</head>
Expand Down

0 comments on commit 3971117

Please sign in to comment.