水平滚动布局与Flexbox的+列(Horizontally Scrolling Layouts w

2019-09-03 22:07发布

Anyone want to help me debug a little experiment I'm working on. I want to use flexbox/multicolumn layout to get a layout similar to what you see in many Windows 8 news app, where the article(s) are in fixed width columns, with a dynamic number of columns depending on the length of the article, that scroll off to the right.

So I whipped up this CodePen but flexbox and the columns don't seem to be working together well. In Firefox, it only shows one column of each, and I can't even tell what's going on in webkit.

What am I screwing up?

(I looked and in Windows 8 html5 apps they seem to use grid layout, but I can't do that since it's IE only)

文章来源: Horizontally Scrolling Layouts with Flexbox + Columns