[英]why the extra 10 pixels in this JSfiddle?
Can someone tell me why I have to subtract an extra 10 pixels from the positioning in this JSFiddle?有人能告诉我为什么我必须从这个 JSFiddle 的定位中减去额外的 10 个像素吗?
It's because the jsfiddle window has 10px of padding around it.这是因为 jsfiddle window 周围有 10px 的填充。
It's just the CSS reset that's tripping you up.只是 CSS 重置让您失望了。 http://jsfiddle.net/mattball/YQPsz/
http://jsfiddle.net/mattball/YQPsz/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.