front-end-interview-handbook/packages/quiz/questions/have-you-ever-used-a-grid-s.../zh-CN.mdx

10 lines
765 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 您是否曾经使用过网格系统,如果使用的话,您喜欢什么?
---
在 Flex 开始流行之前(大约在 2014 年),基于`float`的网格系统是最可靠的因为在现有的替代系统flex、grid它仍然拥有最多的浏览器支持。 Bootstrap 一直在使用`float`方法,直到 Bootstrap 4 转而采用`flex`方法。
今天,`flex` 是建立网格系统的推荐方法,它有[体面的浏览器支持 (99.64%)](https://caniuse.com/#search=flex)。
对于喜欢冒险的人来说,他们可以看看[CSS Grid Layout](https://css-tricks.com/snippets/css/complete-guide-grid/),它使用闪亮的新`grid`属性。 Grid 是一个二维网格布局系统,而 Flexbox 则是一个一维的系统。