英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论