filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="简历背景.jpg",sizingMethod="scale"...

<style type="text/css">
body{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="简历背景.jpg",sizingMethod="scale")
}
</style>

想实现那种背景图无论在什么分辨率下都能全屏显示,在网上找到了这段代码,问题解决了,但是又出现新问题了,就是页面上的文本框,按钮,a标签都不能点击了,请问下有什么办法,或者说换种方式,只要能达到任何分辨率下背景图都是全屏的就行!


问题补充:
jim.jin 写道
<div style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=demo.gif, sizingMethod=scale);width:400px;height:400px"></div> 
这样demo.gif的就会适应div的大小而不是平铺div 

只支持IE


我要设置的是body的背景啊

问题补充:
jim.jin 写道
Html代码   收藏代码
  1. <style type="text/css">  
  2. body {  
  3.   filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/images/logo.gif"sizingMethod=scale);width:100%;height:100%;  
  4.   }  
  5. </style>  


不知道你试过没有,这个还是那种情况,页面上所有的文本和按钮都不能点击了

问题补充:
jim.jin 写道
在给按钮浮起来: 
Java代码   收藏代码
  1. <style type="text/css">  
  2. body {  
  3.   filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/images/logo.gif", sizingMethod=scale);width:100%;height:100%;  
  4.   }  
  5.   a {  
  6.       position:absolute;  
  7.   }  
  8. </style>  


兄弟,能不能麻烦你先在自己机器上试一下,我这边按照你说的还是不行,不过谢谢你了!

问题补充:
jim.jin 写道
我这里当然是可以的,给你完整的(只支持IE,上面跟你说过,IE6/7/8已测试): 
Html代码   收藏代码
  1. <!DOCTYPE html>  
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">  
  3. <head>  
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />  
  5. <head>  
  6. <title>Test margin for IE6</title>  
  7. <style type="text/css" media="screen">  
  8. body {  
  9.       filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/images/logo.gif"sizingMethod=scale);width:100%;height:100%;  
  10.       height:800px;  
  11.   }  
  12.   a {  
  13.       position:absolute;  
  14.   }  
  15. </style>  
  16. </head>  
  17. <body>  
  18.     <a href="http://google.com">test link</a>  
  19. </body>  
  20. </html>  

转载于:https://www.cnblogs.com/zhixin/articles/3029676.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值