<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
这样demo.gif的就会适应div的大小而不是平铺div
只支持IE
我要设置的是body的背景啊
问题补充:
jim.jin 写道
- <style type="text/css">
- body {
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/images/logo.gif", sizingMethod=scale);width:100%;height:100%;
- }
- </style>
不知道你试过没有,这个还是那种情况,页面上所有的文本和按钮都不能点击了
问题补充:
jim.jin 写道
在给按钮浮起来:
- <style type="text/css">
- body {
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/images/logo.gif", sizingMethod=scale);width:100%;height:100%;
- }
- a {
- position:absolute;
- }
- </style>
兄弟,能不能麻烦你先在自己机器上试一下,我这边按照你说的还是不行,不过谢谢你了!
问题补充:
jim.jin 写道
我这里当然是可以的,给你完整的(只支持IE,上面跟你说过,IE6/7/8已测试):
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <head>
- <title>Test margin for IE6</title>
- <style type="text/css" media="screen">
- body {
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/images/logo.gif", sizingMethod=scale);width:100%;height:100%;
- height:800px;
- }
- a {
- position:absolute;
- }
- </style>
- </head>
- <body>
- <a href="http://google.com">test link</a>
- </body>
- </html>