button自定义样式
发布于 6 年前 作者 yong19 12093 次浏览 来自 问答

为何想给button控件自定义样式都不起作用呢?

是我哪里写错了么?例如文字间距颜色,button去边框等。

<button loading="true" disabled="true" class="pageLoading">加载中...</button>
.pageLoading{
  border: 0 none;
  color: #aaa;
  background-color: #eee;
}
5 回复

你别用button了  用别的标签实现

试过了不行

你好,请问当type=“primary”

其按钮背景色怎么改?不想用微信色。

管用 ,你这个border是button伪类里的默认样式

.pageLoading::after{

border: none;

}

还有disabled="true"这个也会给button加上默认样式  你看调试就知道了

disabled=“true”

不要这试试

回到顶部