网页背景图片拉伸解决办法。。

来源:互联网 发布:linux自动挂载磁盘 编辑:程序博客网 时间:2024/05/18 00:48
 

<head>
<title></title>
<style type="text/css">
 
 
 <!--

 .cond{
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/backgroud.jpg', sizingMethod='scale');
}

-->
</style>


</head>

 

<body  style="margin:0;padding:0">
 
 <table  align="center"  width="100%" height="100%" class="cond" border=0 cellpadding=0 cellspacing=0  scrollLeft="0">
 <tr>
    <td> 
   

             <div style="position:relative;background-image:url(images/input.jpg);background-repeat: no-repeat;margin-top:100px;height:338px;width:664;border: 0px solid #000000;">
  <div style="margin-left:280px; margin-top:108px;position:relative"><d:AutoForm id="formLogin" /></div>
 </div>

 

 

</td>
   
    </tr>
   </table> 

 

 

 

注意: div的style要加上position:relative;重新获得焦点。

原创粉丝点击