jQueryで複数のCSSプロパティを記述する書式

Posted by poundhound on

これもいつも忘れるのでメモ

$('#hoge').css({'display' : 'block', 'margin-bottom' : '0.5em'});

プロパティと値は:(コロン)で区切り、プロパティとプロパティは,(カンマ)で区切る。プロパティ同士は{}(ブレス)で囲む。

Categories: JavaScript Tags:

Comment(0) | Trackback(0)

Category:JavaScript の最近の記事

Trackback(0)

Trackback URL: http://www.nk0206.com/mt5/mt-tb.cgi/489

Leve comment

About Author

poundhound

poundhound
web-designer
  • del.icio.us
  • flickr
  • Last FM
  • tumblr

twitter

Recent Tweet

    follow me on twitter

    Life Log

    • twilog
    • twitpic
    • pick