ixRatioSize()

Type : jQuery Plugin

Support : 0.3

Return : jQuery

  • 대상노드를 설정한 비율대로 사이즈 보정

Options

대상 Node의 inline 속성으로 설정하는 data-ix-options의 Properties
property description required default ver
ratio 대상의 가로 세로 비율 설정
ex)100 70
0.3
control-type 사이즈 제어를 Style로 할것인지 속성으로 할것인지 설정 ( "attr", "style", "all" ) style 0.3
axis 사이즈를 계산하는 기준축이 가로인지 세로인지 설정 ( "horizontal", "vertical" ) horizontal 0.3

Methods

  • ixRatioSize( options ) : jQueryver 0.3~

    설정한 비율대로 사이즈 보정
    • options : Object
      각종 옵션들 설정, 설정하지 않으면 기본 옵션이 설정된다, Property는 카멜표기법 사용
      옵션 항목들은 "Options" 참조
      ※옵션설정은 되도록 inline으로 data-ix-options속성에 설정하길 권장한다.

Example