日期:2014-05-17  浏览次数:20578 次

如何让图片填满整个区域?谢谢!
在一个2行3列的表里,有一个 <td> 元素大小为100*50,背景图片大小为800*600,请问如何设置能让背景图片在 <td> 里完全显示,直接放上去只显示一部分.谢谢!

------解决方案--------------------
<style type= "text/css ">
.bg{
width:100%;
height:100%;
filter : progid:DXImageTransform.Microsoft.AlphaImageLoader(src= 'http://www.csdn.net/ui/styles/public_header_footer/logo_csdn.gif ',sizingMethod= 'scale ');
position:absolute;
top:0;
left:0;
z-index:-1;
}
</style>

<div class= "bg "> &nbsp; </div>