[WordPress] 外掛分享: Proportional Image Scaling

首頁外掛目錄 › Proportional Image Scaling
20+
安裝啟用
尚無評分
3587 天前
最後更新
問題解決
WordPress 2.0+ v1.1 上架:2010-03-12

內容簡介

當使用者使用視覺編輯器插入圖片時,WordPress 會自動在 image 標籤上設置寬度和高度屬性。不幸的是,當圖片的寬度大於 CSS 的「max-width」值時,寬度會被限制但高度不受影響,導致圖像失真。
此外掛會移除給定類別的所有圖像的高度和寬度標籤(產生正確的「max-width」行為),或將它們縮放到特定的寬度以協助瀏覽器創建佈局。

已知限制

目前僅支援像素值進行縮放。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Proportional Image Scaling」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

When a user inserts an image using the visual editor, WordPress automatically sets the
width and height attributes on the image tag. Unfortunately, when the images’ width is
larger than the CSS “max-width” value, the width is capped but the height is not
affected, leading to distorted images.
This plugin either removes all height and width tags from images of a given class
(resulting in a correct “max-width” behavior) or scales them to a given width to assist
browsers in creating the layout.
Known Limiations

Currently, only pixel values are supported when scaling.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon