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

10 lines
764 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则是一个一维的系统。