V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
HarryQu
V2EX  ›  问与答

前端 - devtools 中审查元素中的紫色阴影是什么?

  •  
  •   HarryQu · Jun 30, 2021 · 2584 views
    This topic created in 1769 days ago, the information mentioned may be changed or developed.

    今天在排查博客中的一个问题,发现 Flex 布局中,子元素超出了父元素之后,把布局给撑起来了。

    使用审查元素,发现有紫色的网格阴影,这块阴影似乎是表示子元素超出了父元素。

    这块阴影的 Google 搜索关键字是什么?有没有说明文档?

    图片

    3 replies    2021-06-30 11:30:12 +08:00
    ByZHkc3
        1
    ByZHkc3  
       Jun 30, 2021
    测试同学请给出复线流程以及对应的测试环境地址,谢谢。
    lujjjh
        3
    lujjjh  
       Jun 30, 2021   ❤️ 1
    Flex item 的 min-width / min-height 的默认值不是 0 而是 auto,撑开可能是因为这个,可以强行设置 flex item min-width: 0
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2512 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 06:49 · PVG 14:49 · LAX 23:49 · JFK 02:49
    ♥ Do have faith in what you're doing.