替换元素(img / video)的内容在盒子内如何填充。
<div class="of"><img src="data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%2260%22%3E%3Crect width=%22200%22 height=%2260%22 fill=%22%232b57ff%22/%3E%3Ccircle cx=%22100%22 cy=%2230%22 r=%2220%22 fill=%22%23ffb199%22/%3E%3C/svg%3E" alt=""></div>.of { width: 100px; height: 100px; border-radius: 8px; overflow: hidden; }
.of img { width: 100%; height: 100%; object-fit: cover; }