gpt4 book ai didi

css - 为什么我们这里没有 IE 8 的背景色?

转载 作者:太空宇宙 更新时间:2023-11-04 04:53:53 25 4
gpt4 key购买 nike

更新到真实案例场景:

如果您在 IE8 上看到以下内容并且您注意到 anchor 背景颜色已经消失。

<a class="button-white" href="/contacts/index">Contacte-nos</a>


.button-white {
display: block;
text-decoration: none;
text-align: center;
outline: none;
cursor: pointer;
width: 7em;
font-size: 1.25em;
color: #000;
padding: .4em 1em .4em; /* tamanho */
border-radius: .5em;
box-shadow: 0 1px 2px rgba(0,0,0,.2);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #dddddd 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#dddddd)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 0%,#dddddd 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%,#dddddd 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%,#dddddd 100%); /* IE10+ */
-webkit-border-radius: .5em;
-moz-border-radius: .5em;
}

我不能将背景标记为重要,否则,好的浏览器会有白色背景而不是渐变背景。

我已经尝试将背景更改为“背景颜色”,但没有效果。

它会是什么?

我们启用了 HTC。

非常感谢

最佳答案

如果您禁用behavior: url(http://yoururl.com/css/PIE.htc),那么该按钮在 IE8 中应该是白色的。

您的 CSS 是正确的,但是 htc 文件有一个覆盖。

关于css - 为什么我们这里没有 IE 8 的背景色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12856034/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com