這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Scale to Fit

外掛說明

wordpress-scale-to-fit plugin allows developers to force some elements to fit inside other. This can be useful when developers need to make
some non-responsive components (e.g. iframes) to scale with the rest of the page.

Key Features:

  • Allows developers to force elements to fit inside others

Configuration

Add css class “scale-to-fit” to element you wish to initialize scale-to-fit.

You can use following data -attributes to control scaling:

  • data-element-method: Method to find scaled element. Allowed values:
    • self – element it self (default)
    • parent – reference element
    • closest – closest ancestor of reference element matching data-element -attribute selector
    • find – closest descendant of reference element matching data-element -attribute selector
  • data-element: CSS Selector for closest and find methods
  • data-container-method: Method to find container element. Allowed values:
    • self – reference element
    • parent – parent of reference element (default)
    • closest – closest ancestor of reference element matching data-element -attribute selector
      _ find – closest descendant of reference element matching data-element -attribute selector
  • data-container: CSS Selector for closest and find methods

安裝方式

  • Upload folder into /wp-content/plugins -directory
    • Activate the plugin in ‘Plugins’ menu

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Scale to Fit〉的開發相關工作。

參與者

將〈Scale to Fit〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1

  • Initial version