我的背景图片导航栏未正确显示。如果您注意到,导航栏的渐变无法正确显示。上半部分应该是浅灰色,下半部分应该是深灰色。当页面第一次加载时,您可以看到它出现,但随后它全部变灰并失去渐变效果。背景图片未显示正确
我的站点是usahvacsupply.com,我刚刚编辑了我的背景图像,以便更大,以适应1600宽度的分辨率。这是我的背景图片http://tinypic.com/view.php?pic=20ge8nl&s=5的图片。任何帮助将非常感激。
这是我的背景的CSS代码。
html, body{
margin: auto;
background-image:url('/images/Testing1/bg2.jpg');
background-repeat: no-repeat;
background-position:top center;
-moz-background-size:100% 100%;
-webkit-background-size:100% 100%;
background-size:100% 100%;
min-width:1600px;
min-height:1400px;
top: 0;
left: 0;
}
谢谢rubelet,这似乎工作! – icemanphd 2013-05-08 14:50:14