繁体   English   中英

旋转标签 - 材质 UI 按钮

[英]Rotate label - Material UI button

我有一个这样的按钮(material-ui):

 //theme.js export const XButtonTop = withStyles({ root: { borderColor: medium_col, borderRadius: 1, borderTopLeftRadius: 16, borderTopRightRadius: 16, height: 28 }, label: { textTransform: "uppercase", fontSize: "10px" } })(Button);

 //App.js import { XButtonTop } from "../theme"; const Selector = state => { return ( <div> <XButtonTop fullWidth size="small" disableElevation> ) </XButtonTop> </div> ) }

我需要旋转标签(90 度)。

有人能帮助我吗? 谢谢

label: {
    textTransform: 'capitalize',
    transform: 'rotate(-90deg)',
  }

然后您可能还想更改按钮的高度。 像这样的根:

height: 120,
width: 30

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM