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?
Factors may include accessibility, browser support, dynamic content, or any kind of technical limits or usability principles.
转载于:https://stackoverflow.com/questions/492809/when-to-use-img-vs-css-background-image