我想在CSS来支持三种背景图片内嵌显示多个内嵌容器与背景图像,但没有内容
<div id="hd_but2"></div>
<div id="hd_div1"></div>
<div id="hd_but1"></div>
和
#hd_but2 {
background-image:url('1.png');
background-repeat:no-repeat;
height:28px;
width:49px;
margin-top:9px;
}
#hd_div1 {
background-image:url('2.png');
background-repeat:no-repeat;
height:46px;
width:4px;
}
#hd_but1 {
background-image:url('3.png');
background-repeat:no-repeat;
height:28px;
width:29px;
margin-top:9px;
}
但每次我改变内联的div它需要的内容,像文本一样,以显示背景图像...我怎么可以做到这一点,而不需要将文本放入容器中......最好的方法是做什么?