3 ms·
It's a shame IE doesn't support http://caniuse.com/#feat=object-fit http://caniuse.com/#feat=object-fit
by bradbeattie 11y ago
It's a shame IE doesn't support http://caniuse.com/#feat=object-fit http://caniuse.com/#feat=object-fit
- explorigin 11y agoBut there's a shim: https://github.com/anselmh/object-fit https://github.com/anselmh/object-fit
- typedetail 11y agoobject-fit doesn't solve the problem, it is similar to using background-image and set the background-size:cover. Still when the container's width/height ratio doesn't match the image's, there is risk that image could be inappropriately cut off