11 lines
335 B
Markdown
11 lines
335 B
Markdown
|
---
|
||
|
title: Size Your Images
|
||
|
localeTitle: 调整图像大小
|
||
|
---
|
||
|
## 调整图像大小
|
||
|
|
||
|
要调整图像大小,请先在样式标记中创建类。
|
||
|
|
||
|
一个例子: `<style> .fixed-image { width: 500px; height: auto; }`
|
||
|
|
||
|
然后,您可以将该类添加到图像中: `<img class="fixed-image" src="http://www.example.com/picture"/>`
|