gpt4 book ai didi

css - css中的负右边距

转载 作者:行者123 更新时间:2023-11-28 06:06:40 25 4
gpt4 key购买 nike

在 chrome 开发工具栏中,我在 responsive.css:1101 看到了这些细节 enter image description here

但是当我转到 responsive.css 的第 1101 行时,我没有找到 -20px 的 margin-right:

enter image description here

那么是什么导致了 -20px 的右边距?

我搜索了整个 responsive.css 但我找不到导致 -20px 右边距的规则。

在样式选项卡下

enter image description here

在同一时间的计算选项卡下

enter image description here

最佳答案

浏览器会自动计算该值。来自 MDN :

auto is replaced by some suitable value, e.g. it can be used for centering of blocks.

div { width:50%;  margin:0 auto; }

centers the div container horizontally.

关于css - css中的负右边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36404411/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com