chrome/safari display border around image

后端 未结 11 902
暖寄归人
暖寄归人 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:05

    Now I don't know if this is a bug with Chrome or not but the grey border appears when it can't find the image, the image url is broken or as in your case the src isn't there. If you give the image a proper URL and the browser finds it then the border goes away. If the image is to not have a src then you will need to remove the height and width.

提交回复
热议问题