gpt4 book ai didi

html - 带边框的 CSS 透明按钮

转载 作者:太空狗 更新时间:2023-10-29 15:41:01 25 4
gpt4 key购买 nike

我正尝试在 css 中制作一个像这样的按钮

但我不知道该怎么做,因为我是 css 的新手。这是我尝试过的:

.gbtnHollow  {
background: transparent;
height: 38px;
line-height: 40px;
border: 2px solid white;
display: inline-block;
float: none;
text-align: center;
width: 120px;
padding: 0px!important;
font-size: 14px;
color: #fff;
}

.gbtnHollow:hover {
color: #fff;
background: rgba(255, 255, 255, 0.2);
}

最佳答案

很简单,将background: none;设置为button。 JSFiddle

关于html - 带边框的 CSS 透明按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25484894/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com