0.0.8 • Published 10 years ago
component-css v0.0.8
css
jQuery's css() method.
Installation
Install with component(1):
$ component install component/cssAPI
css(el, prop)
Get the computed value of the prop on el.
css(p, 'color')css(el, prop, value)
Set the CSS value on the prop on el
css(p, 'color', 'red')css(el, styles)
Set a styles object to el
css(p, {
color: 'red',
background: 'blue'
})TODO
- Finish porting jQuery css unit tests over
License
MIT