Package Exports
- component-css
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (component-css) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
css
jQuery's css() method.
Installation
Install with component(1):
$ component install component/css
API
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