css中,.background 里面的图片为什么不能显示??
我用的是SSH2的框架,这个banner.jsp在,WebRoot下面啊background:centerno-repeaturl('images/banner.jpg'...
我用的是SSH2的框架,这个banner.jsp在, WebRoot下面啊
background: center no-repeat url('images/banner.jpg'), #6f458e; /* Old browsers */
background: center no-repeat url('images/banner.jpg'), -moz-linear-gradient(top, #0033CC 0%, #0099FF 100%); /* FF3.6+ */
background: center no-repeat url('images/banner.jpg'), -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6f458e), color-stop(100%,#93278f)); /* Chrome,Safari4+ */
background: center no-repeat url('images/banner.jpg'), -webkit-linear-gradient(top, #0033CC 0%,#0099FF 100%); /* Chrome10+,Safari5.1+ */
background: center no-repeat url('images/banner.jpg'), -o-linear-gradient(top, #0033CC 0%,#0099FF 100%); /* Opera 11.10+ */
background: center no-repeat url('images/banner.jpg'), -ms-linear-gradient(top, #0033CC 0%,#0099FF 100%); /* IE10+ */
background: center no-repeat url('images/banner.jpg'), linear-gradient(to bottom, #0033CC 0%,#0099FF 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6f458e', endColorstr='#93278f',GradientType=0 ); /* IE6-9 */ 展开
background: center no-repeat url('images/banner.jpg'), #6f458e; /* Old browsers */
background: center no-repeat url('images/banner.jpg'), -moz-linear-gradient(top, #0033CC 0%, #0099FF 100%); /* FF3.6+ */
background: center no-repeat url('images/banner.jpg'), -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6f458e), color-stop(100%,#93278f)); /* Chrome,Safari4+ */
background: center no-repeat url('images/banner.jpg'), -webkit-linear-gradient(top, #0033CC 0%,#0099FF 100%); /* Chrome10+,Safari5.1+ */
background: center no-repeat url('images/banner.jpg'), -o-linear-gradient(top, #0033CC 0%,#0099FF 100%); /* Opera 11.10+ */
background: center no-repeat url('images/banner.jpg'), -ms-linear-gradient(top, #0033CC 0%,#0099FF 100%); /* IE10+ */
background: center no-repeat url('images/banner.jpg'), linear-gradient(to bottom, #0033CC 0%,#0099FF 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6f458e', endColorstr='#93278f',GradientType=0 ); /* IE6-9 */ 展开
3个回答
2014-04-12
展开全部
历来css背景不显示都只有3个原因(svg之类的做背景不算此列):
路径、类或ID引用各种出错
图片格式出错(比如有做印刷的人经常企图把cmyk色彩模式的图放在网页上显示)
被其他样式覆盖
慢慢检查吧。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询