">
HOME> 赛事大厅> 2025-10-08 18:26:59

尝试一下

.styled {

border: 0;

line-height: 2.5;

padding: 0 20px;

font-size: 1rem;

text-align: center;

color: #fff;

text-shadow: 1px 1px 1px #000;

border-radius: 10px;

background-color: rgb(220 0 0 / 100%);

background-image: linear-gradient(

to top left,

rgb(0 0 0 / 20%),

rgb(0 0 0 / 20%) 30%,

rgb(0 0 0 / 0%)

);

box-shadow:

inset 2px 2px 3px rgb(255 255 255 / 60%),

inset -2px -2px 3px rgb(0 0 0 / 60%);

}

.styled:hover {

background-color: rgb(255 0 0 / 100%);

}

.styled:active {

box-shadow:

inset -2px -2px 3px rgb(255 255 255 / 60%),

inset 2px 2px 3px rgb(0 0 0 / 60%);

}

备注:

button 类型的 元素仍然是合法的 HTML 代码,但是新的