Mais conteúdo relacionado
杂志式布局
- 17. box model and float
behavior
• 使⽤用shape定义周围内容环绕浮动元素的边界,浮动
元素的实际盒模型(box model)不会变化,层级关系
也不受影响。
• shape受限于浮动元素的margin box⼤大⼩小,超出裁
切。即shape只能减少浮动区域,不会增⼤大浮动区
域。
- 18. 语法
shape-outside:
none | [ <basic-shape> || <shape-box> ] | <image>
inset()
circle()
ellipse()
polygon()
margin-box
border-box
padding-box
content-box
- 20. 应⽤用实例 - 圆形
circle() = circle( [<shape-radius>]? [at <position>]? )]
!
<shape-radius>
• ⻓长度单位(px, pt, em, 百分⽐比等)
• 关键词:closest-side(默认) / furthest-side
!