- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
对我来说,不可能在具有多行的 React 中使用 Material-Ui 创建按钮。
这是我的代码:
<Button>
<Typography variant="h3">Text1</Typography>
<Typography variant="h5">Text2</Typography>
</Button>
当前结果:文本1文本2
我想要这个:
Text1
Text2
第一个文本应为 variant=h3,第二个文本应为 v=5。谢谢!!!
最佳答案
您可以将按钮 display
样式设置为 block
。并根据您的要求对齐文本。
<Button style={{ display: "block", textAlign: "left" }}>
<Typography
variant="h3"
>
Text1
</Typography>
<Typography variant="h5">Text2</Typography>
</Button>
关于reactjs - 按钮多行排版,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68801364/
默认情况下,Bootstrap 有 @baseFontSize: 14px 和 @baseLineHeight: 20px。我打算使用 12px 作为我的 @baseFontSize。我是否应该将 @
最近我将我的 Material UI 版本从 3.9.4 升级到 4.11.0,我不得不在主题样式覆盖上替换这些: 为避免这些警告: 但是我需要将 fontSize 样式放在 !important 中
我使用 MathJax 来显示数学方程。它在静态编写的数学中运行良好。但不适用于动态添加的数学。 这是我的代码 //Static \(x = {-
在定制我的angular material theme's typography .我知道可以用自己的字体覆盖默认字体,如下所示: $custom-typography: mat-typography
各位seoer应该都明白,要想网站有排名,收录是前提条件,没有收录完全谈不上排名、流量。但是内页的收录往往是seo最大的难题之一,笔者手上有一堆网站都是只被收录了首页或者几页内页,因此解决内页收录问
我有一个 MathJax 示例,位于 Demo sample ,它按预期工作。它所做的只是在 id 为 mathDiv 的 div 中排版 latex 表达式。 当第三个 latex 表达式即将被排版
我正在尝试使用 iText7 创建 Bengli 文本的 pdf。其他文本似乎工作正常,但有一个。 PdfFont font = null; try { font = PdfFontFact
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 4 年前。 Improve this q
我有以下代码: UILabel *registerLabel = [ [UILabel alloc ] initWithFrame:CGRectMake(20.0, 90.0, [self scree
是MDC typography特定于 Roboto 字体,或者我们可以使用其他 Google 字体来实现,如果是这样,推荐的方法是简单地应用 font-family CSS 到 body ? 最后,似
有没有办法从 ipython/jupyter 文本编辑器编译/排版 Latex 文件?我希望能够编辑该文件,然后下载更新输出的 pdf 文件。 例如我目前将我的简历 (CV.tex) 存储在运行 ju
我一直在遵循有关排版的 Google 官方 Material 设计指南 (http://www.google.com/design/spec/style/typography.html),但我发现它们
我是一名优秀的程序员,十分优秀!