何时使用IMG与CSS背景图像?

筅森魡賤 提交于 2020-08-08 18:00:59

问题:

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!