html - 悬停时星云单选按钮光标更改
问题描述
在 Nebular 中,默认情况下,指针在悬停在 上方时不会改变nb-radio
。我需要实现它,我通过在标签中包含span
标签并将其设置pointer-events
为 auto 进行了尝试,但它似乎不起作用。有解决方法吗?
app.component.html
<nb-radio-group [(ngModel)]="selectedOption">
<nb-radio *ngFor="let option of options" [value]="option.value">
<span style="pointer-events: auto;">{{option.label}}</span>
</nb-radio>
</nb-radio-group>
解决方案
我相信你可以使用 CSScursor
属性。
例子:
nb-radio {
pointer-events: none;
}
推荐阅读
- windows - 如何在 Windows slave 上的 Jenkinsfile.groovy 中复制具有特定扩展名的文件
- c# - 任务在 Linux 上的 Rider 中找不到“AxImp.exe”
- sql - 无效标识符:sql中多列的总和
- r - 在 R 的另一列中保留不唯一但具有不同标签的行
- javascript - 是什么导致无法在纯 JavaScript 中检测到滚动到 HTML 元素的底部?
- python - 将两个文件动态导入python中的另一个文件,这两个文件位于不同的目录中
- r - 如何修改嵌套在列表中的数据框而不重新分配
- c - 行 *x=y 是否等于 c 中的行 x[0]=y
- c# - 我在 Visual Studio 中遇到 emguCV 问题
- python - For 循环中的元组 - Python