样式组件 - 如何以形式设置样式
在我的React应用中使用样式组件
时,如何设置formtitle
样式?
我想做formtitle
和formDescription
在新行中是分开的吗?
代码段 :( demo)
https://codesandbox.io/s/friendly-currying-533zce?file=/src/app.js
我应该在代码中更改什么?谁能帮我吗?谢谢
When using styled-components
in my React app, how do I set FormTitle
styles like this?
I want to do FormTitle
and FormDescription
are separate in the new line?
Code snippet: (DEMO)
https://codesandbox.io/s/friendly-currying-533zce?file=/src/App.js
What should I change in my code? Can anyone help me? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用Phil的解决方案,也可以添加
Flex-wrap:wrap;
reccuringFormrow和width:100%;
reccuringFormHeadeCell。You can use Phil's solution, or you can add
flex-wrap: wrap;
to ReccuringFormRow andwidth: 100%;
to ReccuringFormHeaderCell.