3
我跟着下面的文檔。 http://www.material-ui.com/#/components/popover
<Popover
open={this.state.open}
anchorEl={this.state.anchorEl}
anchorOrigin={{horizontal: 'left', vertical: 'bottom'}}
targetOrigin={{horizontal: 'left', vertical: 'top'}}
onRequestClose={this.handleRequestClose}
>
<Menu>
<MenuItem primaryText="Sign out" onClick={this.props.logout} />
</Menu>
</Popover>
Signout菜單鈕是醜陋的。有誰知道爲什麼會發生這種情況?提前致謝。
在React Material UI中,組件具有內聯樣式,所以不要忘記css文件中的'!important'。 –
實際上,我沒有看到該屬性被內聯樣式覆蓋。但它可能是。 –
這是否意味着我需要物化css/js以便在使用MaterialUI時導入?我試圖添加它,但它打破了所有的結構......猜測它與其他css文件衝突。 – jhlosin