component-css
DOM element css helper
Last updated 9 years ago by ockham .
MIT · Repository · Bugs · 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                                ...           11 years ago
  • 0.0.5                                ...           11 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |