1.以下是一个个人觉得漂亮的按钮。
.botton {
width: 130px;
height: 40px;
background: #745A74;
border-radius: 10px;
text-align: center;
color: #fff;
margin-top: 30px;
line-height: 40px;
}
2.按钮属性
style="background-color:white;
text-align: center;
background-image: url(../images/tuoyuan.png);
width: 372px; //button外围的大小
height: 70px;
background-repeat: no-repeat;
background-position: 50% 0%;//背景图片位置,第一个参数调水平,第二个参数调垂直
background-size: 70px 70px;//背景图片大小
background-size: contain;//背景图片大小,铺满,好像下面这个更好用
border: 1px solid red;
以下为去除button边框
.user button::after{ border: none; }
<button style="color:white;background-image:url('images/button.png');width:261px;height:37px;font-size:14px;border:none;outline:none;">立即使用</button>
border:none;边框会隐藏,但点击输入框会显示。
想要点击不显示,还得加上outline:none;