首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在IE中剪切的图像

在IE中剪切的图像
EN

Stack Overflow用户
提问于 2013-10-23 22:03:11
回答 1查看 472关注 0票数 0

我在IE中看到了一些奇怪的东西,我期望看到的背景图像并没有出现。

这是我的CSS:

代码语言:javascript
复制
#grey.internal #leader p{color: #525051;}
#grey h1 {color: #bc35b7;}
#grey.internal #for .forcont{ border:none;margin:0;}
#grey #leader p {font-size: 18px; line-height: 32px; width: 760px; margin: 0 auto; }
#grey #leader ul.section-links {padding: 32px 0 62px 0; width: 700px; margin: 155px auto 0 auto;height: 100%; border: 1px red solid; }
#grey #leader ul.section-links li {display: inline-block; margin: 0 6%;}
* html #grey #leader ul.section-links li { /* for IE6 */ display: inline;}
*+html #grey #leader ul.section-links li { /* for IE7 */ display: inline;}
#grey #leader ul.section-links li h2 a {color: #525051; text-decoration: none; height: 100%;  border: 1px blue solid;}
#grey #leader ul.section-links li h2 a:hover {text-decoration: underline;}
#grey #leader ul.section-links li h2 a.payments {background: url('/_/img/icon-payments.png') no-repeat 0 0; padding: 135px 30px 0 0; }
#grey #leader ul.section-links li h2 a.identity {background: url('/_/img/icon-identity.png') no-repeat 8px 0; padding: 135px 50px 0 60px; margin-right: 20px;}
#grey #leader ul.section-links li h2 a.analytics {background: url('/_/img/icon-analytics.png') no-repeat 10px 0; padding: 135px 0 0 0;}

下面是html代码块:

代码语言:javascript
复制
<section id="leader">
    <p>Lorem</p>
    <ul class="section-links">
        <li class="p-item"><div class="icont"><h2><a href="/mobile-payments/" class="payments">Payments</a></h2></div></li>
        <li class="i-item"><div class="icont"><h2><a href="/identity/" class="identity">Identity</a></h2></div></li>
        <li class="a-item"><div class="icont"><h2><a href="/mobile-analytics/" class="analytics">Analytics</a></h2></div></li>
    </ul>
</section>

这是我在IE中看到的(6-8):

这是我在Chrome中看到的:

我添加边框只是为了给我一个线索,告诉我发生了什么!

EN

回答 1

Stack Overflow用户

发布于 2013-10-23 22:40:39

这个问题与<section>标签有关。因为它是HTML5,而IE <9不支持它,所以这个部分标记将不包含任何内容(并且会自动关闭,从而使您的所有css都无用)。或者将其更改为其他内容,或者包含https://code.google.com/p/html5shiv/

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19543907

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档