在 chrome 开发工具栏中,我在 responsive.css:1101
看到了这些细节
但是当我转到 responsive.css
的第 1101 行时,我没有找到 -20px
的 margin-right:
那么是什么导致了 -20px 的右边距?
我搜索了整个 responsive.css 但我找不到导致 -20px 右边距的规则。
在样式选项卡下
在同一时间的计算选项卡下
最佳答案
浏览器会自动计算该值。来自 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/