-1
<div id="back">
<div id="scale"></div>
<div id="pointer"></div>
</div>


CSS CODE :


#back
{width:99%;
height:100px;
position:relative;
}

#scale
{width:99%;
 height:100px;
 position:absolute;
 top:0px;
 left:0px;
 background-image:url(Number_guessing_game/image/scale.png);
 background-repeat:no-repeat
 }

 #pointer
 {width: 17px;
  height: 22px;
  position: absolute;
  top: 0px;
  left: 0px;
  background-image:url(Number_guessing_game/image/download.jpg);
  }

我无法在比例图像上显示指针图像。我应该怎么做才能显示指针图像,请告诉我这是什么错误?

4

1 回答 1

2

您缺少z-index顶部应该具有更高价值的那个。

于 2013-06-11T16:33:26.750 回答