oceanran

button样式设置

<button class=\'user-phone-btn\' >立即抢购</button>

1、去边框

 

.user-phone-btn::after {
  border: none;
}

 

2、去圆角(border-radius: 0;两处都要声明

 

.user-phone-btn {
  border-radius: 0;

}
.user-phone-btn::after {
  border-radius: 0;
}

 

3、按钮边框左边框与字同宽

.user-phone-btn {
  margin-left: 0rpx;
  padding-left: 0rpx;
}

 

4、修改高度

需要设置line-height属性,


分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-09-29
  • 2021-07-01
  • 2021-11-28
  • 2021-12-06
  • 2022-01-22
  • 2022-02-03
  • 2022-12-23
猜你喜欢
  • 2022-01-15
  • 2022-12-23
  • 2022-01-14
  • 2021-12-18
  • 2022-01-14
  • 2022-02-02
  • 2022-01-08
相关资源
相似解决方案