gpt4 book ai didi

html - 如何使 HTML anchor 标记(或链接)看起来像一个按钮?

转载 作者:技术小花猫 更新时间:2023-10-29 11:28:55 28 4
gpt4 key购买 nike

我有这个按钮图片:
enter image description here

我想知道是否可以做一个简单的

<a href="">some words</a> 

并设置链接的样式以显示为该按钮?

如果可能,我该怎么做?

最佳答案

使用 CSS:

.button {
display: block;
width: 115px;
height: 25px;
background: #4E9CAF;
padding: 10px;
text-align: center;
border-radius: 5px;
color: white;
font-weight: bold;
line-height: 25px;
}
<a class="button">Add Problem</a>

http://jsfiddle.net/GCwQu/

关于html - 如何使 HTML anchor 标记(或链接)看起来像一个按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8357058/

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