我有一个 Bootstrap 按钮
<button class="btn btn-primary">Login</button>
我希望此按钮在未禁用时具有光标指针(手)而不是默认值(箭头)。
按钮禁用属性由 Angular 组件中的变量管理
<button class="btn btn-primary" [disabled]="user==undefined">Login</button>
最佳答案
尝试这个 CSS 规则:
button:not(disabled){
cursor: pointer
}
关于html - 如果 Bootstrap 4 中未禁用按钮,如何将按钮光标更改为指针?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57108186/