何时使用IMG与CSS背景图像?
问题: In what situations is it more appropriate to use an HTML IMG tag to display an image, as opposed to a CSS background-image , and vice-versa? 在什么情况下使用HTML IMG 标签来显示图像更合适,而不是CSS background-image ,反之亦然? Factors may include accessibility, browser support, dynamic content, or any kind of technical limits or usability principles. 因素可能包括可访问性,浏览器支持,动态内容或任何类型的技术限制或可用性原则。 解决方案: 参考一: https://stackoom.com/question/24CX/何时使用IMG与CSS背景图像 参考二: https://oldbug.net/q/24CX/When-to-use-IMG-vs-CSS-background-image 来源: oschina 链接: https://my.oschina.net/stackoom/blog/4328501