-1

背景画像をdivの外側にしようとしていますが、これを行う方法がわかりません(可能であれば)。私のHTML:

<div id="test"></div>

私のCSS:

#test {
    width: 50px;
    height:50px;
    background: 0 50px url('https://developers.google.com/_static/images/developers-logo.svg') blue;
}

スタンドアロンのデモ:

http://jsfiddle.net/568Zy/

デモは、50x50 div 内の画像を示しています。私が望んでいたのは、背景画像を上から 0px、左から 50px から開始することでした。

何か案は?

4

2 に答える 2