我正在尝试制作一个视差页面,但是当我将占位符图像更改为我要使用的图像时,新图像消失了。
两张图片的宽度相同,不同的是高度。我需要更改样式表或源代码吗?
样式表代码为:
#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">
所以那里没有什么特别的。
最佳答案
您应该从图像名称中删除额外的空格。
#intro .story{
background: url("images/LAYER2-TEXT-RIGHT.png") 50% 0px no-repeat fixed;
height: 3798px;
position: relative;
width: 1024px;
关于jquery - 当高度增加时图像消失。为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10067696/