如何删除 HTML 按钮上的灰色“边框”
我在 HTML 网页上看到按钮周围有边框。我正在尝试将一个按钮设为蓝色和一个绿色,并将它们放在桌子上。代码如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | < table align = "center" >
< tr style = " font-family: verdana; font-size: 24px;" >
< th > Select your Region </ th >
</ tr >
< tr >
</ tr >
< tr >
</ tr >
< tr >
</ tr >
< tr >
</ tr >
< tr >
< td align = "center" >
< button >
< a id = "cust" type = "button"
style=
"background-color: #00824A;
border: none;
color: white;
padding: 16px 55px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
transition-duration: 0.4s;
cursor: pointer;
font-weight: bold;
font-family: verdana"
href = "URL" >
US
</ a >
</ button >
</ td >
</ tr >
< tr >
</ tr >
< tr >
</ tr >
< tr >
</ tr >
< tr >
</ tr >
< tr >
< td align = "center" >
< button >
< a id = "cust" type = "button"
style=
"background-color: #0061D5;
border: none;
color: white;
padding: 16px 55px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
transition-duration: 0.4s;
cursor: pointer;
font-weight: bold;
font-family: verdana"
href = "URL" >
EU
</ a >
</ button >
</ td >
</ tr >
</ table >
|
这是它们在网页上的显示方式:
我希望整个按钮都是那种颜色,周围没有灰色。我删除了样式中带有 border: none 的“边框”。相反,它在较大的灰色按钮内显示一个颜色矩形。