反应组件:如何确保组件在其他下方
目前,我与孩子的组成部分看起来像这样: 我的组件的代码:
const container = styled.div`
display: flex;
position: sticky;
bottom: 40px;
left: 40px;
width: max-content;
`
我想这样的底部添加组件:
我该怎么做?
Currently, my component with children looks like this:
My component's code:
const container = styled.div`
display: flex;
position: sticky;
bottom: 40px;
left: 40px;
width: max-content;
`
I want to add components to the bottom of it like this:
How do I do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最好的方法是使用
display:Grid
在您的CSS中,然后设置网格 - 拼写 - 列表
和grid-column
as需要The best way to do this is by using
display: grid
in your CSS and then setting yourgrid-template-columns
andgrid-column
as needed