我有一个Sandbox的这个项目,我正在工作,虽然我很高兴得到JS部分几乎完成,响应式设计是驾驶我有点疯狂,我相信这是一个简单的解决方案与Flex,但我不能得到它。
目前桌面视图是正确的,看起来应该是这样的,移动的和平板电脑却不是。在移动,唯一的问题是图像需要直接在标签下面,但上面的行星内容。在平板电脑,图像是上面的两个,然后弯曲在一起的权利下的图像。我知道一个问题是我有一个框容器在FlexTest.js的标签和内容,因此,我不能使用Flex Order来定位那里,但如果没有那些在同一个容器中,我就有问题让它们在不同的视图中正确定位。
This是设计的本意,以防我的描述真的很糟糕。
1条答案
按热度按时间b4qexyjb1#
我想在
tailwind-css
中给予它的想法。您需要切换
flex-row
和flex-col
属性以使此功能在tailwind-css
中工作。移动的设备中的输出
大型设备中的输出
代码: