net,我想使用div标签显示图像。我正在使用以下div来做到这一点。我的div是
<div style="background: transparent url('arrow_left.png') no-repeat center center; width:32px; height: 32px;"></div>
答案 0 :(得分:0)
这个对我有用:
<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
答案 1 :(得分:0)
检查一下:
<img>
)