📜  css 调整图像大小而不失真 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:52.637000             🧑  作者: Mango

代码示例1
.frame {
  height: 250px;
  background: transparent no-repeat center;
  background-size: cover;
  background-image: url('http://i.imgur.com/lNB7QSt.jpg')
}