component-css
DOM element css helper
Last updated 10 years ago by jongleberry .
MIT · Original npm · Tarball · package.json
$ gnpm install component-css 
SYNC missed versions from official npm registry.

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

License

MIT

Current Tags

  • 0.0.8                                ...           latest (9 years ago)

3 Versions

  • 0.0.8                                ...           9 years ago
  • 0.0.6                                ...           10 years ago
  • 0.0.5                                ...           10 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |