【发布时间】:2012-04-21 12:00:57
【问题描述】:
我正在尝试制作视差页面,但是当我将占位符图像更改为我要使用的图像时,新的图像消失了。
两张图片的宽度相同,只是高度不同。我需要更改样式表或源代码吗?
样式表代码为:
#intro .story{
background: url (images/LAYER2 TEXT RIGHT.png) 50% -0px no-repeat fixed;
height: 3798px;
position: relative;
width: 1024px;
在源代码中它只是放置为:
</head>
<body>
<div id="intro">
所以那里并没有什么特别之处。
【问题讨论】:
-
在哪个浏览器和版本中?
-
您的背景属性顺序错误。应该是
background: url (images/LAYER2 TEXT RIGHT.png) no-repeat fixed 50% 0;。另外,我会尽量避免文件名中的空格。 -
好吧,它甚至没有出现在 Dream Weaver 中......
标签: jquery css image html background