Html Internet Explorer中的中心背景图像
有人知道如何在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
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的宽度相同,只是背景图像
句子中的中的中间顶部