Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如图,是否没有根据依次图片的高度来排布 #32

Open
wmhh1129 opened this issue Jun 14, 2024 · 1 comment
Open

如图,是否没有根据依次图片的高度来排布 #32

wmhh1129 opened this issue Jun 14, 2024 · 1 comment

Comments

@wmhh1129
Copy link

image
看起来是短的条目放在了短的条目的下面,按理应该长的放短的下面 ?

@gk-shi
Copy link
Owner

gk-shi commented Jun 14, 2024

排版是按整体元素高度来的,不单单算图片的。瀑布流的排版规则是:找到当前排版后的最低位置,就是下一个排版的元素位置。
就你截图上看来,1号文章和2号文章渲染完之后,1号文章的元素高度显然比2号文章高了一点,所以下个渲染的3号文章就会排在2号下了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants