当前位置:Gxlcms > html代码 > 求前台牛人解答关于z-index的问题_html/css_WEB-ITnose

求前台牛人解答关于z-index的问题_html/css_WEB-ITnose

时间:2021-07-01 10:21:17 帮助过:15人阅读

z-indexie7 z-index ie7 显示一部分

首先上图片,在firefox下面,实现的效果是

鼠标放上去

这个效果已经实现了。
可是在ie 7 下 ,
原来效果
鼠标放上去之后

只在图片放在的位置实现了效果,超过图片之后,就显示不出来了。
代码如下:原来的界面是一个图片,鼠标放上去之后是同样的图片加上下面的内容,
  1. <div id="ps_albums">
  2. <s:iterator value="categoryProducts" id="products">
  3. <div class="ps_album">
  4. <div class="similar_thumb">
  5. <table class="similarPictuer"> <tbody><tr><td valign="middle" align="center">
  6. <s:if test="#products.productImg1 !=null && #products.productImg1 != ''">
  7. <s:if test="#product.productImg1.substring(0,2) == "//" || #product.productImg1.substring(0,4) == "http"">
  8. <img class="img1" src="https://www.gxlcms.com/<s:property value=" #product.productimg1"="">" alt="Product Picture" width="95" height="95" onerror="urlImgError(this)"/>
  9. </s:if>
  10. <s:else>
  11. <s:if test="#application['modify_product_image'] == 'true'">
  12. <img class="img1" src="https://www.gxlcms.com/<s:property value='#application[" modify_image_link"]'="">?url=https://www.gxlcms.com/<s:property value="#products.productImg1">&size=95X95" />
  13. </s:property></s:if>
  14. <s:else>
  15. <img class="img1" src="https://www.gxlcms.com/<s:property value='#application[" netcloud.product.images.path"]'="">https://www.gxlcms.com/<s:property value="#products.productImg1">" width="95" height="95" />
  16. </s:property></s:else>
  17. </s:else>
  18. </s:if>
  19. <s:else>
  20. <img src="https://www.gxlcms.com/static/portal/images/photonotavailable.jpg" width="95" height="95">
  21. </s:else>
  22. </td></tr></tbody></table>
  23. <div class="rltd_over">
  24. <table class="coversimilarPictuer">
  25. <tbody><tr><td valign="middle" align="center">
  26. -https://www.gxlcms.com/<s:property value="@com.netcloud.core.utils.TransCodingUtils@replace(#products.productName)">.htm">
  27. <s:if test="#products.productImg1 !=null && #products.productImg1 != ''">
  28. <s:if test="#product.productImg1.substring(0,2) == "//" || #product.productImg1.substring(0,4) == "http"">
  29. <img src="https://www.gxlcms.com/<s:property value=" #product.productimg1"="">" alt="Product Picture" width="95" height="95" onerror="urlImgError(this)"/>
  30. </s:if>
  31. <s:else>
  32. <s:if test="#application['modify_product_image'] == 'true'">
  33. <img class="img1" src="https://www.gxlcms.com/<s:property value='#application[" modify_image_link"]'="">?url=https://www.gxlcms.com/<s:property value="#products.productImg1">&size=95X95" />
  34. </s:property></s:if>
  35. <s:else>
  36. <img class="img1" src="https://www.gxlcms.com/<s:property value='#application[" netcloud.product.images.path"]'="">https://www.gxlcms.com/<s:property value="#products.productImg1">" width="95" height="95" />
  37. </s:property></s:else>
  38. </s:else>
  39. </s:if>
  40. <s:else>
  41. <img src="https://www.gxlcms.com/static/portal/images/photonotavailable.jpg" width="95" height="95">
  42. </s:else>
  43. </s:property></td></tr></tbody></table>
  44. <p>
  45. <s:if test="#products.condition != null && #products.condition != ''">
  46. Condition :<font color="#008B8B"><n:selectlabel name="#products.condition" list="#{1:'NEW',2:'USED',3:'Manufacturer Refurbished',4:'Seller Refurbished',5:' For Parts or Not Working',6:'Recycles'}"></n:selectlabel></font><br>
  47. </s:if>
  48. <s:if test="#products.manufOtherName != null && #products.manufOtherName != ''">
  49. Brand: <font color="#008B8B">https://www.gxlcms.com/<s:property value="manufOtherName"></s:property></font><br>
  50. </s:if>
  51. <s:if test="#products.modelNo != null && #products.modelNo != '' ">
  52. Model#: <font color="#008B8B"> https://www.gxlcms.com/<s:property value="modelNo"></s:property></font><br>
  53. </s:if>
  54. <s:if test="#products.prodLocCity == null && products.prodLocState == null && products.prodLocCountry == null">
  55. </s:if>
  56. <s:else>
  57. Location: <font color="#008B8B">
  58. <s:if test="#products.prodLocCity != null && #products.prodLocCity !=''">
  59. https://www.gxlcms.com/<s:property value="prodLocCity">,
  60. </s:property></s:if>
  61. <s:if test="#products.prodLocState != null && #products.prodLocState != ''">
  62. https://www.gxlcms.com/<s:property value="prodLocState">,
  63. </s:property></s:if>
  64. <s:if test="#products.prodLocCountry != null && #products.prodLocCountry != '' ">
  65. https://www.gxlcms.com/<s:property value="prodLocCountry">
  66. </s:property></s:if>
  67. </font>
  68. </s:else></p>
  69. <input name="productIdS" type="button" id="productIdSimilar" onclick="similarToinquiry(https://www.gxlcms.com/<s:property value=" productid"="">)"/>
  70. </div>
  71. </div>
  72. </div>
  73. </s:iterator>
  74. </div>

搜索了下说是该元素的父元素设置为position: relative; 我从这个元素开始向上到body每层都设置了position: relative; 而且z-index比class = rltd_over的z-index 都小,可是依旧不行,求大神支招


回复讨论(解决方案)

你的样式里有超出隐藏没,如果有先去掉看看

你的样式里有超出隐藏没,如果有先去掉看看 没有的哈,有的话firefox不会成功的,而且我刚刚特看了下,没有的

人气教程排行