net で、divタグを使って画像を表示したい。これを行うために、次の div を使用しています。私のdivは
<div style="background: transparent url('arrow_left.png') no-repeat center center; width:32px; height: 32px;"></div>
net で、divタグを使って画像を表示したい。これを行うために、次の div を使用しています。私のdivは
<div style="background: transparent url('arrow_left.png') no-repeat center center; width:32px; height: 32px;"></div>
これは私のために働いています:
<div style="background: transparent url('http://cdn.sstatic.net/stackoverflow/img/sprites.png?v=5') no-repeat top left; width:132px; height: 132px;"></div>
->省略形プロパティを使用する場合、プロパティ値の順序は次のとおりです。
background-color
background-image
background-repeat
background-attachment
background-position
これをチェックして:
<img>
)