【发布时间】:2019-02-07 11:44:19
【问题描述】:
如何从antd menu item 中删除onHover 突出显示?
我做了以下事情:
<Header className="header">
<Menu mode="horizontal" style={{ lineHeight: "50px" }}>
<Menu.Item key="1">
<Title {...props} />
</Menu.Item>
<Menu.Item key="3">
<FrequentItems {...props} />
</Menu.Item>
<Menu.Item key="2" style={{ float: "right" }}>
<ProfileSettings {...props} />
</Menu.Item>
</Menu>
{/* <Content>
<Title {...props} />
</Content> */}
</Header>
菜单项按预期显示,但当将鼠标悬停在任何菜单项上时,它会突出显示下划线。我怎样才能避免这种情况?
当前悬停时如下所示:
悬停时出现蓝线。我希望菜单项之一是静态文本。不可点击,悬停时颜色不应改变。
【问题讨论】:
标签: javascript reactjs menuitem antd