forked from component/dom
-
Notifications
You must be signed in to change notification settings - Fork 1
shtylman edited this page Dec 23, 2012
·
1 revision
Get and set css properties.
get the value for
prop
var value = dom('#foobar').css('display');set the value for
proptovalue
set several properties based on the
key:valuepairs of the object. This is equivalent to calling.css(key, value)for each key:value pair.
dom('<div>').css({
color: 'blue',
display: 'inline-block'
});