<imgsrc="https://fanhua-picture.oss-cn-hangzhou.aliyuncs.com/03%E6%88%91%E7%9A%84%E5%8D%9A%E5%AE%A2/LV03-Markdown-03-%E5%9B%BE%E7%89%87/img/001The original image.png"/>
实际效果如下:
2. 定义宽和高来实现缩放
html
1
<imgsrc="https://fanhua-picture.oss-cn-hangzhou.aliyuncs.com/03%E6%88%91%E7%9A%84%E5%8D%9A%E5%AE%A2/LV03-Markdown-03-%E5%9B%BE%E7%89%87/img/001The original image-16871809879543.png"width=100height=60/>
实际效果如下:
3. 百分比确认缩放
html
1
<imgsrc="https://fanhua-picture.oss-cn-hangzhou.aliyuncs.com/03%E6%88%91%E7%9A%84%E5%8D%9A%E5%AE%A2/LV03-Markdown-03-%E5%9B%BE%E7%89%87/img/001The original image-16871810226416.png"width=20%height=20% />
实际效果如下:
二、位置确定
1. 居中
html
1 2 3
<imgsrc="https://fanhua-picture.oss-cn-hangzhou.aliyuncs.com/03%E6%88%91%E7%9A%84%E5%8D%9A%E5%AE%A2/LV03-Markdown-03-%E5%9B%BE%E7%89%87/img/001The original image-16871810874909.png"width=20%height=20% /> <!-- 或者加上 align 标签 --> <imgsrc="https://fanhua-picture.oss-cn-hangzhou.aliyuncs.com/03%E6%88%91%E7%9A%84%E5%8D%9A%E5%AE%A2/LV03-Markdown-03-%E5%9B%BE%E7%89%87/img/001The original image-16871810874909.png"width=20%height=20%align="center"/>
2. 左对齐
html
1
<imgsrc="https://fanhua-picture.oss-cn-hangzhou.aliyuncs.com/03%E6%88%91%E7%9A%84%E5%8D%9A%E5%AE%A2/LV03-Markdown-03-%E5%9B%BE%E7%89%87/img/001The original image-168718112152912.png"width=20%height=20%align="left"/>
3. 右对齐
html
1
<imgsrc="https://fanhua-picture.oss-cn-hangzhou.aliyuncs.com/03%E6%88%91%E7%9A%84%E5%8D%9A%E5%AE%A2/LV03-Markdown-03-%E5%9B%BE%E7%89%87/img/001The original image-168718122523415.png"width=20%height=20%align="right"/>