现在(2020年)可以放心地自由使用Flexbox和Grid吗?

huangapple go评论86阅读模式
英文:

Is it safe to use Flexbox and Grid freely by now (2020)?

问题

我担心这不是一种代码交流,但是CSS3中的Flexbox和Grid始终让我的生活变得更轻松。但我无法停止担心浏览器的兼容性。在2020年(现在)毫不犹豫地使用Flexbox和Grid是否真的安全?

英文:

I'm afraid it's not a code talk but, Flexbox and Grid in CSS3 have always made my life easier. But I can't stop worrying about the browser compatibility. Is it seriously safe to use Flexbox and Grid without hesitation in 2020 (now)?

答案1

得分: 5

"Whether it's 'safe' depends on the percentage of browsers your target audience is using. So the problem can be considered subjective.

There is no fatal instability because at the moment it is rich in polyfills and most modern browsers support flexbox and grid layout.

Support tables of flexbox and grid layout:

Polyfills:

英文:

Whether it's "safe" depends on the percentage of browsers your target audience is using. So the problem can be considered subjective.

There is no fatal instability because at the moment it is rich in polyfills and most modern browsers support flexbox and grid layout.

Support tables of flexbox and grid layout:

Polyfills:

答案2

得分: 2

你可以自己查看:https://caniuse.com/#search=grid

如果你有任何疑问,可以通过访问日志检查用户的浏览器信息来验证。

英文:

I think so, you can see for yourself here: https://caniuse.com/#search=grid

If you have any doubts you can check in your access log to verify your user's browsers via the user-agent

huangapple
  • 本文由 发表于 2020年1月3日 15:26:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/59574699.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定