1、新建HTML文件
2、引入图片
3、预览效果如图
4、设置图像的高度height: auto
5、设置图像的高度height: 160px
6、设置图像的高度height: 30px
7、预览效果如图