以下是翻译的结果:
灰色按钮
显然有很多问题,但我最担心的是蓝色按钮周围的边框。
以下是每个按钮的HTML代码。
蓝色按钮
<a href="#" ><button class="btn" type="button">View The Line Up</button></a>
灰色按钮
<a href="#" ><button class="btn2" type="button">View The Line Up!</button></a>
以及CSS。
蓝色按钮
.btn {
-webkit-border-radius: 28;
-moz-border-radius: 28;
border-radius: 28px;
font-family: Arial;
color: #ffffff;
font-size: 14px;
background: #358cb1;
padding: 10px 30px 10px 30px;
text-decoration: none;
float: left;
margin-top: 20px;
}
.btn:hover {
background: #3cb0fd;
text-decoration: none;
}
灰色按钮
.btn2 {
-webkit-border-radius: 31;
-moz-border-radius: 31;
border-radius: 31px;
font-family: Arial;
color: #000000;
font-size: 14px;
padding: 10px 30px 10px 30px;
border: solid #000000 1px;
text-decoration: none;
float: left;
margin-top: 20px;
margin-left: 20px;
}
.btn2:hover {
background: #acb0b3;
text-decoration: none;
}
<a>
来包裹<button>
按钮? - Marc Audet<button>
标签来代替<a>
标签,你可以直接将所有应用在<button>
标签上的CSS属性应用到<a>
标签上。 - Skyyy