內容簡介
總結:這是一個簡單、輕量的區塊,可顯示每行文字的完整寬度,無論文字長度如何,且無需 JavaScript。若從 Block Inserter 首次安裝外掛,WordPress 存在一個問題,無法將區塊樣式加載到 iFrame,因此需重新整理頁面。
問題與答案:
- 這個外掛可以幫助使用者做什麼?
- 提供一個簡單輕量的區塊,可將每行文字顯示在完整寬度,無需擔心文字長度。
- 該外掛是否需要使用 JavaScript?
- 不需要使用 JavaScript。
- 如果要支持這個專案,應該在哪裡給他個星星?
- 在 GitHub 上的 https://github.com/kevinbatdorf/fit-to-width 給這個專案加星星。
- 安裝這個外掛時可能會遇到什麼問題?
- 若首次從 Block Inserter 安裝,WordPress 有一個 bug ,無法將區塊樣式加載到 iFrame,需要重新整理頁面。
外掛標籤
開發者團隊
② 後台搜尋「Fit To Width – CSS-only stretchy text」→ 直接安裝(推薦)
原文外掛簡介
A simple, lightweight block for displaying each line of text at full width, no matter the length of the text. No JavaScript.
Star the project on GitHub: https://github.com/kevinbatdorf/fit-to-width
Note: if you are installing it for the first time from the Block Inserter, WordPress has a bug where it doesn’t load block styles into the iFrame, so you will need to refresh.
