[英]styled-components - how to set styles in form
When using styled-components
in my React app, how do I set FormTitle
styles like this?在我的 React 应用程序中使用
styled-components
时,如何设置FormTitle
样式?
I want to do FormTitle
and FormDescription
are separate in the new line?我想在新行
FormTitle
和FormDescription
分开吗?
Code snippet : (DEMO)代码片段:(演示)
https://codesandbox.io/s/friendly-currying-533zce?file=/src/App.js https://codesandbox.io/s/friendly-currying-533zce?file=/src/App.js
What should I change in my code?我应该在我的代码中更改什么? Can anyone help me?
谁能帮我? Thanks
谢谢
You can use Phil's solution, or you can add flex-wrap: wrap;
您可以使用 Phil 的解决方案,也可以添加
flex-wrap: wrap;
to ReccuringFormRow and width: 100%;
到 ReccuringFormRow 和
width: 100%;
to ReccuringFormHeaderCell.到 ReccuringFormHeaderCell。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.