chrome/safari display border around image

后端 未结 11 904
暖寄归人
暖寄归人 2020-12-03 10:30

Chrome and Safari are displaying a border around the image, but I don\'t want one. There is no border in Mozilla. I\'ve looked through the CSS and HTML, and I can\'t find an

11条回答
  •  眼角桃花
    2020-12-03 11:12

    This may happen when the image is planted dynamically by css (e.g. by http://webcodertools.com/imagetobase64converter) in order to avoid extra HTTP requests. In this case we don't want to have a default image because of performance issues. I've solved it by switching from an img tag to a div tag.

提交回复
热议问题