根内联框 – 根内联框是否可以反过来有后代,或者这意味着什么?

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

Root Inline Box - Can an root inline box have descendants in turn or what does that mean?

问题

"one of its descendants" 指的是根内联框的子孙之一。

根内联框本身也可以有子孙,这是指根内联框下方可能会有其他内联框作为其后代。

英文:

https://www.w3.org/TR/css-inline-3/#root-inline-box

> The block container also generates a root inline box, which is an
> anonymous inline box that holds all of its inline-level contents.
> (Thus, all text in an inline formatting context is directly contained
> by an inline box, whether the root inline box or one of its
> descendants
.) The root inline box inherits from its parent block
> container, but is otherwise unstyleable.

What does "one of his descendants" refer to?

Can an root inline box have descendants in turn or what does that mean?

答案1

得分: 0

<div>
  在<strong>Fire</strong>的情况下,破坏玻璃以<span>发出警报。<img src="bell.jpg" alt="钟铃符号"></span>
</div>

根内联框 – 根内联框是否可以反过来有后代,或者这意味着什么?

"Fire"和"发出警报"包含在根内联框的后代框中,而"在"和"破坏玻璃以"直接包含在根内联框中。

英文:

Let's suppose we have this mark-up

<div>
  In the case of <strong>Fire</strong>, break glass to 
  <span>sound alarm. <img src="bell.jpg" alt="bell symbol"></span>
</div>

This will generate a box tree. 根内联框 – 根内联框是否可以反过来有后代,或者这意味着什么?

"Fire" and "sound alarm" are contained within boxes that are descendants of the root inline box, while "In the case of " and " break glass to " are contained directly by the root inline box.

huangapple
  • 本文由 发表于 2023年2月16日 09:57:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/75467117.html
匿名

发表评论

匿名网友

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

确定