背景图像无法加载

时间:2016-04-10 19:58:25

标签: css3 background background-image

我的background-image属性有问题。 我想在scena background-image:url(img/rullino.png);的背景中插入胶卷的图像,但/* tag */ body,html{ background-color: grey; font-family: 'Existence Light', arial, sans-serif; font-size: 1.8em; height:100%; } p { word-wrap:break-word; } /* ======= Generale sezioni ======= */ .sections{ min-height: 100%; } /* ======= Entry-section ======= */ #entry-logo img{ margin: 10% 0 0; } #entry-section #go-down{ margin-top: 9%; text-align: center; } #entry-section i{ content:"\f078"; color:white; } /* ======= film-section ======= */ #film{ height:100%; } #film > .container{ height:100%; padding:0; margin:0; width:100%; } .container > #rullino { height:20%; background-color:red; } body #film .container #rullino .scena { background-image: url(img/rullino.png); background-color: #00ff00; background-repeat: no-repeat; height:100%; width:15%; float:left; } #rullino img{ max-height:70%; }没有显示任何内容。

当我在Mozilla上使用Firebug内联编写它时,它可以工作。

有人明白为什么会这样吗?



<body>
			<section id="entry-section" class="sections">
				<div class="container">
					<div id="entry-logo">
						<img src="img/logo.png" width="100%" alt="Un Autre Chien Andalou">
					</div>
					
				</div>
				<div id="go-down">
						<i class="fa fa-chevron-down"></i>
					</div>
			</section>
			<section id="film" class="sections">
				<div class="container">
					<div id="rullino">
						<div id="scena1" class="scena">
							<p>scena1</p>
						</div>
						<div id="scena2" class="scena">
							<p>scena2</p>
						</div>
						<div id="scena3" class="scena">
							<p>scena3</p>
						</div>
						<div id="scena4" class="scena">
							<p>scena4</p>
						</div>
						<div id="scena5" class="scena">
							<p>scena5</p>
						</div>
					</div>
				</div>
&#13;
NSURL
&#13;
&#13;
&#13;

0 个答案:

没有答案