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 3b4890c commit c209913
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,27 @@
height: 55%; /* 增加高度为35% */
background-color: rgba(0, 0, 0, 0.5); /* 设置半透明黑色 */
}

/* 在黑色区块上方放置三个圆角矩形 */
#overlay::before,
#overlay::after {
content: '';
position: absolute;
width: 100px;
height: 20px;
background-color: white;
border-radius: 10px;
top: -10px;
}

#overlay::before {
left: 20%;
}

#overlay::after {
left: 50%;
}

</style>
</head>
<body>
Expand Down

0 comments on commit c209913

Please sign in to comment.