首页 > 解决方案 > 命令栏按钮悬停

问题描述

我正在使用 CommandBar 组件来显示链接。(按钮是 href 链接)。我想在悬停时从按钮中删除下划线。是否可以?在此处输入图像描述

https://developer.microsoft.com/en-us/fluentui#/controls/web/commandbar

标签: office-ui-fabricfluent-uifluentui-reactcommandbar

解决方案


如果你想在悬停时删除按钮的下划线,也许你可以做这样的事情

button: hover{
text-decoration: none;
}

让我知道这是否对你有用


推荐阅读