图像定位在div之外 [英] Image positioning outside a div

查看:104
本文介绍了图像定位在div之外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将图片的顶部设置为相对于包含该图片的div为-200像素。例如:


i have set the top of an image to -200px relative to the div that contain that image. for example:

问题是divone正在禁止我放上的图像imageup 。我尝试设置z-index #imageup没有成功。 Heres是具体问题:

The problem is that the div "one" is hidding me the image that i put on "imageup". I tried setting up z-index on #imageup with no succeed. Heres is the specific problem:

http:// www.ofertasybonos.com/ofertas-automovil

如您所见,图片coches.png被另一个div隐藏,我在#imageup或者coches.png上解决这个设置css属性

As you see the image coches.png is hidden by another div, how i solve this setting a css property on #imageup or on the coches.png

推荐答案

imageup


  • code> position:absolute

  • 更改 top:-200px c> top:100px 。

  • You win(demo)

  • Change position: relative to position: absolute.
  • Change top: -200px to top: 100px.
  • You win (demo).

这篇关于图像定位在div之外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆