为什么这个 JSfiddle 中多了 10 个像素?
有人能告诉我为什么我必须从这个 JSFiddle 中的定位中减去额外的 10 个像素吗?
Can someone tell me why I have to subtract an extra 10 pixels from the positioning in this JSFiddle?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是因为 jsfiddle 窗口周围有 10px 的填充。
It's because the jsfiddle window has 10px of padding around it.
只是 CSS 重置让你陷入困境。 http://jsfiddle.net/mattball/YQPsz/
It's just the CSS reset that's tripping you up. http://jsfiddle.net/mattball/YQPsz/