doorxp-blog

doorxp.com

You can use the css property object-fit.

<img src="http://i.stack.imgur.com/2OrtT.jpg" class="cover" width="242" height="363" />.cover {
  object-fit: cover;
  width: 50px;
  height: 100px;
}


发表评论:

Powered By Z-BlogPHP 1.5.1 Zero

Copyright doorxp.com Rights Reserved.