Google chrome WebKit浏览器中的CSS定位错误

Google chrome WebKit浏览器中的CSS定位错误,google-chrome,webkit,css-float,positioning,Google Chrome,Webkit,Css Float,Positioning,我已经尝试了所有的方法,但我无法让这个覆盖层在Chrome或Safari中工作。。。有什么想法吗?箭头应该在拇指上,就像在Firefox和IE中一样 镀铬: 在Firefox中: 我的代码: 试试这个: .hm_tst_dv_img_overlay { height: 80px; width: 131px; display: block; margin: 0; position: absolute; top: 0; left: 0;

我已经尝试了所有的方法,但我无法让这个覆盖层在Chrome或Safari中工作。。。有什么想法吗?箭头应该在拇指上,就像在Firefox和IE中一样

镀铬:

在Firefox中:

我的代码:

试试这个:

.hm_tst_dv_img_overlay {
    height: 80px;
    width: 131px;
    display: block;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}
如果你能避免的话,我不会混合定位和浮动

<div class="hm_tst_dv_img">
    <div class="hm_tst_dv_img_thumb">
        <img alt="" src="<?php echo base_url(); ?>
            uploads/testimonials/thumb_
            <?php echo $testimonial->image; ?>"
            width="131" height="80" />
    </div>
    <div class="hm_tst_dv_img_overlay">
        <a href="javascript:void(0);" onclick="PlayTestmoinalVideo(<?=$i;?>)">
            <img src="<?php echo base_url(); ?>images/testimonial_overlay.png" />
        </a>
    </div>
</div>
.hm_tst_dv_img_overlay {
    height: 80px;
    width: 131px;
    display: block;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}