sSize String that specifies or receives one of the following values.
- Clips the image to fit the dimensions of the object. image
- Default. Enlarges or reduces the border of the object to fit the dimensions of the image.
- Stretches or shrinks the image to fill the borders of the object.
crop
scale
本文介绍了三种常见的图片填充模式:crop(裁剪),使图片适应对象尺寸;image(默认),按比例缩放图片以适应对象边界;scale(拉伸),使图片完全填充对象边界。
597

被折叠的 条评论
为什么被折叠?



