img标签src不给路径就会出现边框

img[src=""],img:not([src]){opacity:0;}

原文地址:https://www.cnblogs.com/SimonHu1993/p/9156197.html