非常感谢你!
<button class="btn btn-primary" disabled>Button</button>
下一个CSS代码将改变其颜色(仅在禁用时):
.btn.btn-primary[disabled] { background-color: #00ff00; }
要么
.btn.btn-primary:disabled{ background-color: #00ff00; }