如何把 Excel 表格貼到部落格裡
要點
- 轉換
- 貼上
You want to put a table made in Excel in a blog post. As an image the text is hard to read and not searchable. As an HTML table it appears as text and reads well on phones. Convert with Convert an Excel Table to HTML or Markdown and paste into the blog.
步驟
- Choose an .xlsx with "Choose an Excel file".
- Choose the "Sheet", and under "Format" choose "HTML table".
- Copy with "Copy result".
- In the blog editor, switch to "HTML" or "code editor" and paste.
Pasting into the normal (WYSIWYG) editing screen may display the HTML text as it is.
Why an HTML table beats an image
- The text is searchable
- Readable on phones without zooming
- The table content can be fixed later
- The page is lighter than with an image
Checks after pasting
- Does the table fit the blog's width?
- Does it overflow when viewed on a phone?
- Is the header row clear?
Differences between blogs
Where to paste HTML varies by blog service. Look for "HTML edit", "code editor", "custom HTML", "HTML block" and so on.
Tips for readable tables
- Keep the number of columns as small as possible
- Keep text short and concise
- Add a header row
- Split the table when there are many columns
適合
- Price lists, schedules, comparison tables
- Product spec tables
- Rankings and score tables
示例
Wanted to put a product spec comparison table in a blog post. Turned the Excel table into HTML and pasted it into an HTML block, giving a table that reads well on phones.
Common stumbling blocks
- Pasting into the WYSIWYG editor shows raw HTML: switch to the HTML editing screen.
- The table overflows: reduce columns.
- No colours: colours are decided by the blog's design.
Frequently asked questions
Can I change how the table looks?
Adjust it with the blog's design settings.
小結
Put blog tables in as HTML, not images. Pasting into the HTML editing screen is the key.
使用「把 Excel 表格轉換成 HTML 或 Markdown」(免費)搭配使用的工具
- 把 Excel 轉換成 CSV 或 JSON:把 Excel 工作表轉換成 CSV、TSV 或 JSON。
- 把 Word 轉換成 HTML:把 Word 的文字轉換成 HTML。
- CSV 與 JSON 互相轉換:立即在 CSV 和 JSON 之間互相轉換。