Home > Archives > 2008-08-04

2008-08-04

style属性でbackground-imageをhtmlに直書きする時の罠

指定する背景画像のパスを指定するときに

body style=”background: url(”/images/background.gif”) left top repeat;”

このようにダブルクオートで囲むと表示されず、

body style=”background: url(’/images/background.gif’) left top repeat;”

シングルクオートにすると表示されました。

 
結構ここで悩みました。。。

Home > Archives > 2008-08-04

Archives
Tag Cloud
Feeds

Return to page top