为什么图像显示得比应有的大?
此页面上的三张图片显示得大于 CSS指定。我使用的是 Chrome 10,图像为“通过 RSS 订阅”“在 Twitter 上关注我们”(两者都应为 170 像素,但显示为 200 像素){[[已解决]] 和“阅读此内容的女性也阅读”应该是原始图片为 780 像素,但显示为 936 像素}。
Three images on this page are showing up larger than the CSS specifies. I'm using Chrome 10, and the images are "Subscribe via RSS" "Follow us on Twitter" (both should be 170px but are showing as 200px) {[[RESOLVED]] and "Women who read this also read" should be 780px as the original pic is but is showing at 936px}.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试按 Ctrl + 0(零)重置浏览器的缩放。如果在 Chrome 中放大一级,“阅读此内容的女性也阅读”图像的宽度为
936px
。Try pressing Ctrl + 0 (zero) to reset your browser's zoom. The "Women who read this also read" image is
936px
wide if zoomed in one level in Chrome.这些图像没有应用 CSS。为了避免发生此类问题,请尝试向 img 标签本身添加宽度/高度属性
There is no CSS applied to those images. To avoid issues like this happening, try adding width/height attributes to the img tag itself