【发布时间】:2017-03-13 19:33:21
【问题描述】:
h1 {
font-family: "Comic Sans MS", "Comic Sans", cursive;
text-align: center;
letter-spacing: 0.5px;
font-size: 2.4rem;
background-image: -webkit-linear-gradient(left, rgb(140, 198, 63), rgb(0, 185, 245));
background-image: -moz-linear-gradient(left, rgb(140, 198, 63), rgb(0, 185, 245));
background-image: -ms-linear-gradient(left, rgb(140, 198, 63), rgb(0, 185, 245));
background-image: -o-linear-gradient(left, rgb(140, 198, 63), rgb(0, 185, 245));
background-image: linear-gradient(to right, rgb(140, 198, 63), rgb(0, 185, 245));
background-clip: content-box;
-webkit-background-clip: text;
color: transparent;
-webkit-text-stroke-width: 2px;
-webkit-text-stroke-color: white;
-moz-text-stroke-width: 2px;
-moz-text-stroke-color: white;
-ms-text-stroke-width: 2px;
-ms-text-stroke-color: white;
-o-text-stroke-width: 2px;
-o-text-stroke-color: white;
text-stroke-width: 2px;
text-stroke-color: white;
}
<h1>Heading.. Appears good in Chrome but not in IE :( </h1>
上面是 HTML 和 CSS 代码。该代码在 Google Chrome 中运行良好。但是相同的代码在 Internet Explorer - 10,11,Edge 中不起作用。我怀疑错误出在背景剪辑中。请帮忙。
【问题讨论】:
标签: html css internet-explorer internet-explorer-11