首页 > 解决方案 > 阻止 INTERNET EXPLORER 打印白色文本灰色

问题描述

打印时,Internet Explorer 11 将文本颜色白色更改为灰色

<style>
.s1{
    FONT-SIZE: 97.8px;
    FONT-FAMILY: Arial-BoldMT_o;
    FONT-WEIGHT: bold;
    color: rgb(255,255,255);
    }
</style>
<div id='t1' class='s1'>Print these letters white - not grey!</div>

标签: cssinternet-explorerprintingbackground-image

解决方案


试试这个:改变

.s1  { your css here } => #t1 { your css here } 

可能有帮助

或更改您的 html 代码

id='t1' class='s1'

至 => 仅:

class='s1'

所有关于“CSS 特异性”的信息 https://dev.to/emmabostian/css-specificity-1kca


推荐阅读