TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

CSS Flexbox Cross-Browser Inconsistencies

6 点作者 kremlin超过 10 年前

1 comment

lucisferre超过 10 年前
I&#x27;ve noticed a lot of, relatively minor, inconsistencies since switching to flex-box. It definitely takes a while to adjust to them and iron them all out. At this point, now that it&#x27;s working, I&#x27;ve mostly forgotten what the quirks were.<p>But I agree with the author, there was a lot of trial and error moments to get the layouts we wanted working across browsers, and even then there were some unexplainable quirks that we just couldn&#x27;t figure out and had to back away from and take different approaches.<p>IE, as usual, seemed to have the biggest issues. I recall that one issue was it didn&#x27;t behave consistently if you left out the flex-basis value. So instead of `flex: 1`, you would find that fully specifying `flex: 1 1 auto` would behave more consistently in certain situations.