在 html 中找不到样式,但可以在 styleSheets 中找到

Can't find style in html but can find in styleSheets

当我使用Material-ui Box组件(如<Box padding={2}/>)时,我在html中找不到样式,但我可以找到样式document.styleSheets,为什么?

screenshot of index.html

screenshot of document.styleSheets

该样式规则可能来自 Shadow DOM 或 constructible stylesheet.

中的样式 sheet

这些数据仅按需提供。意思是每时每刻都来。

它带有 外部 CSS 文件。这些是内置在库中的,它加载了 event accrues.

例如:如果 click 事件在 button 上累积,样式将更改 blue灰色那样。