gpt4 book ai didi

html - CSS 颜色在 Windows Phone 8.1 的 IE 中不显示(在其他地方工作)

转载 作者:行者123 更新时间:2023-11-28 03:57:45 26 4
gpt4 key购买 nike

我对 WP8.1 上 IE 中的 CSS 颜色有疑问。我要测试的设备是 Lumia 635。

简而言之,样式表中设置的所有颜色都不会显示(背景颜色、字体颜色、链接颜色等)。然而,它们确实适用于我测试过的所有其他设备,以及桌面浏览器(包括 IE)。

媒体查询或其他任何 CSS 似乎都没有问题,只是颜色问题。这是网站,如果愿意,我可以发布代码的简化版本:
http://bulgarian-translation-uk.com/

我们将不胜感激可能来自于此的任何帮助或建议。我严重怀疑它与问题有任何关系,但网站运行在 ColdFusion 应用服务器上。

提前致谢!

编辑:这里有一些简单的代码可以说明问题 - 它甚至不会显示背景颜色等基础知识,但其他任何内容都没有问题。我也将完全相同的代码上传到以下测试页面:
http://bulgarian-translation-uk.com/bg/test/

body {
background-color:#000000;
}
body, .text {
color:#ffffff;
font-size:25px;
font-family:"Times New Roman", Times, serif;
text-decoration:none;
filter:none !important;
}
a, .text a {
color:#0a591d;
text-decoration:underline;
filter:none !important;
}
.text {
text-align:center;
margin-top:50px;
padding:0;
}
<div class="text">
Test <a href="#">Test</a>
</div>

最佳答案

在头部添加

<style type="text/css">
html,body{height:100%}
body{color:black;background-color:white}
</style>

关于html - CSS 颜色在 Windows Phone 8.1 的 IE 中不显示(在其他地方工作),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43362140/

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