对于其定义,大致上就是下面这三点:
- If the run-in box contains a block box, the run-in box becomes a block box.
- If a sibling block box (that does not float and is not absolutely positioned) follows the run-in box, the run-in box becomes the first inline box of the block box. A run-in cannot run in to a block that already starts with a run-in or that itself is a run-in.
- Otherwise, the run-in box becomes a block box.
翻译成中文就是下面的意思:
display:run-in;
的块内你是说display:run-in的元素,如果子元素有block box的话,他就是块元素,如果他后面的兄弟是块,他就变成这个块的子元素而且是内联,前提是这个兄弟块的子元素中没有run-in子元素(之后这种情况会是内联元素),其他的都是块,是这个意思吗?