-
- ANDROID
- ANDROID_TABLET
- CHROME
- CHROME_VERSION
- DOC_MODE
- DOC_MODE_IE10_LT
- DOC_MODE_IE11_LT
- DOC_MODE_IE12_LT
- DOC_MODE_IE8_LT
- DOC_MODE_IE9_LT
- EDGE
- FIREFOX
- IE10_LT
- IE11_LT
- IE7_LT
- IE8_LT
- IE9_LT
- IE_COMPATIBLE
- IE_VERSION
- IPAD
- IPHONE
- LINUX
- MAC
- MOBILE
- MOBILE_IOS
- MOZILLA
- MSIE
- OPERA
- OPERA_MINI
- OS_VERSION
- SAFARI
- SAMSUNG
- SAMSUNG_VERSION
- SMART_PHONE
- TABLET
- TOUCH_DEVICE
- VERSION
- WEBKIT
- WEBKIT_VERSION
- WINDOWS
- WINDOWS_PHONE
- WINDOWS_TABLET
-
- addChild
- addClass
- addEvent
- attr
- children
- clone
- closest
- contentHeight
- contentWidth
- css
- each
- element
- hasClass
- hasEvent
- height
- html
- innerHeight
- innerWidth
- insertSWF
- match
- next
- outerHeight
- outerWidth
- parent
- prev
- prop
- rect
- remove
- removeAllEvent
- removeAttr
- removeChild
- removeClass
- removeEvent
- removeProp
- replaceWith
- scrollLeft
- scrollTop
- selector
- selectorAll
- text
- transition
- trigger
- width
css()
Type : public method
Support : 0.6
Return : -
- 대상 개체 Style을 설정하거나 반환.
Methods
-
css( properties ) : voidver 0.6~
Inline Style설정.-
properties : String"width:100px; z-index:2" 표기법
-
-
css( propertyName ) : NumberStringPropertiesver 0.6~
ComputedStyle을 반환.
최신 브라우저에서는 좀더 정확한 수치 반환 (소수)-
propertyName : String"z-index" 표기법, 입력하지 않으면 all (property를 입력하여 값을 구하는것이 정확하다)
-
Example
//setter
$B( '#box' ).css( 'left:100px; top:10px' );
//getter
var width = $B( '#box' ).css( 'width' );