Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html Internet Explorer中的中心背景图像_Html_Css_Internet Explorer_Background_Position - Fatal编程技术网

Html Internet Explorer中的中心背景图像

Html Internet Explorer中的中心背景图像,html,css,internet-explorer,background,position,Html,Css,Internet Explorer,Background,Position,有人知道如何在internet explorer中居中显示页面上的图像吗?我用这个,但它不起作用 body{ margin:0; padding:0; font-family:"Arial", Times, serif; font-size:10px; width:100%; height:100%; background-image:url('background.png') center top; background-position:center top; background

有人知道如何在internet explorer中居中显示页面上的图像吗?我用这个,但它不起作用

body{

margin:0;
padding:0;

font-family:"Arial", Times, serif;
font-size:10px;
width:100%;
height:100%;
background-image:url('background.png') center    top;
background-position:center top;
background-repeat:no-repeat;
background-color:#cfddef ;

}
这也不管用

body{

margin:0;
padding:0;

font-family:"Arial", Times, serif;
font-size:10px;
width:100%;
height:100%;
background: #cfddef url("background.png") no-repeat center top;

}
谢谢你的回答:)

检查这个。这就是你要找的吗

body{
margin:0;
padding:0;

font-family:"Arial", Times, serif;
font-size:10px;
width:100%;
height:100%;


background-image:url('http://storage3d.com/storage/2007.02/2aae1d60e516d24a40230e01ee33a00f.jpg');
background-repeat:no-repeat;
background-position:center;
    background-attachment:fixed;


background-color:#cfddef ;

}

这应该行得通……我们需要看到它的实际行动。请创建一个JSFIDLE。注
背景图像:url('background.png')居中顶部
应该是
背景图像:url('background.png')你是否对IE的某个特定版本有意见?重复你自己。试试速记版背景:#cfddef url(“background.png”)无重复中心顶部;我的网站是,但当你的屏幕分辨率为1366x768px时,它会工作,因为背景图像的宽度与@Paulie_D says的宽度相同,只是
背景图像
句子中的
中的中间顶部