【问题标题】:Text not showing below images in IEIE中的图片下方不显示文字
【发布时间】:2012-08-03 02:12:11
【问题描述】:

Fiddle Here

我的问题是,为什么在 IE(8 和更早版本)的缩略图下没有显示标题文本。在所有其他浏览器中都能正常工作。

HTML:

<div id="thumbsGrid">
    <div class= "thumbs">
        <a href="http://youtu.be/A30XhK8Vtmg">
            <img src="http://www.jillmedinger.com/NCPIE/images/thumbs/shadowed/recoverythumb.png"id="1.thumb"/>
        </a> 
        <h4><a href="http://youtu.be/A30XhK8Vtmg">Ben</a></h4>
    </div>
    <div class= "thumbs">
        <img src="http://www.jillmedinger.com/NCPIE/images/thumbs/shadowed/recoverythumb.png" id="2.thumb"/> 
        <h4><a href="/NCPIE/resonator.html"> The Resonator</a></h4>
    </div>
    <div class= "thumbs">
        <a href="/NCPIE/re.html">
            <img src="images/thumbs/door2/friendsThumbs.png"id="3.thumb"/>
        </a> 
        <h4><a href="/NCPIE/re.html">RE-Covery</a></h4>
    </div>
    <div class= "thumbs">
        <a href="/NCPIE/divedeeper2.html">
            <img src="images/thumbs/door2/divedeeper2Thumb.png"id="5.thumb"/>
        </a>  
        <h4><a href="/NCPIE/divedeeper2.html"> Dive Deeper </a></h4>
    </div>
    <!--thumbsGrid close-->     
</div>

CSS:

.thumbs {
    float:left;
    width:100px; 
    height:100px;
    margin-right:12px;
    margin-bottom:0;
    border:0;
    padding:0;
}
#thumbsGrid {
    float:left;
    width:500px;
    min-height:216px;
    margin-left:110px;
    border:0;
    padding-right:40px;
    background: black;
}
.thumbs h4 a {
    color: #FFF;
}

这里是现场直播:www.jillmedinger.com/NCPIE/door2.html

【问题讨论】:

    标签: css image internet-explorer text


    【解决方案1】:

    这与.thumbs 上的filter 有关。最简单的解决方法是将position: relative 设置为h4this fiddle shows

    【讨论】:

      猜你喜欢
      • 2023-03-31
      • 1970-01-01
      • 2012-02-02
      • 1970-01-01
      • 2020-10-14
      • 2017-10-04
      • 2015-08-21
      • 2019-08-11
      • 2012-09-19
      相关资源
      最近更新 更多