0

http://new.michaellane.com/listing-gallery.php

你在那里看到的黄色纸条有这一套:

.listing_specs {
    width:230px;
    height:140px;
    background-image:url('/images/featured_listing_specs.png');
    background-repeat:no-repeat;
    color:#836637;
    padding-top:10px;
    position:absolute;
    top:120px;
    right:-120px;
    z-index:50;
}

包含它的 div .listing_icons 只是一个通用的 float:left, position:relative DIV,z-index 仅为 10。

黄色条是如何出现在右侧的 .listing_icons 下方的?

4

3 回答 3

2

将左侧z-index的所有设置为 11。grid_8 alpha listing_gallery_icon

于 2010-11-04T22:09:24.480 回答
2

只需从 .listing_gallery_icon 中删除 z-index:

.listing_gallery_icon {
  position:relative;
  /*z-index:10;*/
}
于 2010-11-04T22:13:53.240 回答
0

这是因为右侧的 div 与左侧的音符无关。

尝试设置右边:-120px;到 0。这是想要的效果吗?

于 2010-11-04T22:09:08.557 回答