您的位置: 首页 > IT文章 > img在src无效或者是空的时候出现边框 img在src无效或者是空的时候出现边框 分类: IT文章 • 2023-12-11 11:16:55 其实一行css就搞定啦~ img[src=""],img:not([src]){ opacity: 0 }