小编Mar*_*kus的帖子

为什么"nowrap"div中的"inline-block"元素溢出?

以下代码导致#headline溢出#wrapper,我不明白为什么会发生这种情况.

HTML:

<div id="wrapper">
    <div id="logo">
        <img src="/test.png">
    </div>
    <div id="headline">
        <h1>This headline overflows its wrapping div. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # …
Run Code Online (Sandbox Code Playgroud)

css overflow nowrap

13
推荐指数
1
解决办法
2万
查看次数

标签 统计

css ×1

nowrap ×1

overflow ×1