青青子衿,悠悠我心
但为君故,沉吟至今

Layout mode

Source: https://developer.mozilla.org/en-US/docs/Web/CSS/Layout_mode

A CSS layout mode, sometimes abbreviated as layout, is an algorithm determining the position and the size of boxes based on the way they interact with their sibling and ancestor boxes. There are several of them:

  • The block layout, designed for laying out documents. The block layout contains document-centric features, like the ability to float elements or to lay them out over multiple columns.
  • The inline layout, designed for laying out text.
  • The table layout, designed for laying out tables.
  • The positioned layout, designed for positioning elements without much interaction with other elements.
  • The flexible box layout, designed for laying out complex pages that can be resized smoothly.
  • The grid layout, designed for laying out elements relative to a fixed grid.
Note: not all CSS properties apply to all layout modes. Most of them apply to one or two of them and have no effect if they are set on an element participating in another layout mode.

这篇文章有几个知识点还不清楚的,需要以后回过头细查下相关的知识点。

赞(0) 打赏(金额可随意指定)
未经允许不得转载:云阁轩 » Layout mode
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

其他地方 也 能 看到我

Github豆瓣读书

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏