gpt4 book ai didi

css - 创建一个带有双边框的按钮?

转载 作者:行者123 更新时间:2023-12-05 08:28:07 25 4
gpt4 key购买 nike

我想要的按钮:

http://i.stack.imgur.com/A2Qv4.png (I don't have enough reputation to post images)

我试过了,但是不行:

button {
font-family: 'Ubuntu', sans-serif;
font-size: 1em;
font-weight: bold;
color: white;
border: 3px double #f26700;
background: #f26700;
}

如何使用 CSS 显示这条白线?

最佳答案

写:

button{
border: 3px double white;
}

DEMO here.

或者:

button{
border: 1px double white;
outline: 1px solid #f26700;
}

DEMO here.

或者:

button{
border: 2px solid white;
box-shadow:0 0 0 0px white, 0 0 0 2px #F26700;
}

DEMO here.

关于css - 创建一个带有双边框的按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21074202/

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