开发者

image width is zero in chrome

开发者 https://www.devze.com 2023-03-04 21:18 出处:网络
this displays fine in FF,Opera, IE9, but in Chrome, the images don\'t display due to a ze开发者_运维百科ro width on images

this displays fine in FF,Opera, IE9, but in Chrome, the images don't display due to a ze开发者_运维百科ro width on images any idea why?

http://drbrent.sideradesign.com/photo-gallery/

thanks


Removing following styling fixes the issue

/* style.css:949 */
img {
  max-width: 100%;
}


I'm guessing it's because you didn't specify px or em. upon inspection with chrome, it tells me that the image is 0x313 and your style says width="137"; height="313"; should be width"137px" height="313px". That's one of the problem. If that doesn't fix it, might be something else.

Edit: Like @jibiel said, it's your img{max-width:100%;}

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号