plugin-icon

Scale to Fit

作者:metatavu·
wordpress-scale-to-fit plugin allows developers to force some elements to fit inside other. This can be useful when developers need to make
版本
0.1
活跃安装
10
最后更新
Oct 15, 2016

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
免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 4.6.30
这个插件是可用的下载,适用于您的站点。