【发布时间】:2016-04-08 13:42:13
【问题描述】:
我已经开始使用 PIE 样式作为渐变的网页(用于 IE9,本地标准)。 渐变效果很好,看起来不错。开始在页面中添加其他功能,渐变消失了。把我做的所有改动都拿出来了,还是不行。
页面加载时,在背景设置为全白之前,可以看到渐变闪烁。
它在 Chrome 中确实有效。
如果我取消了在渐变工作时所做的所有更改,我不明白会发生什么变化。
<!DOCTYPE html>
<html>
<head>
<title>Training Registration Admin</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
hr{
border-color: ivory; //Chrome and Safari
background-color: ivory; //firefox and Opera
color: ivory; //IE9
}
div, table{
width: 100%;
}
html{
height: 100%;
}
body{
color: ivory;
background: #000000;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#000000), to(#48525C));
background: -webkit-linear-gradient(#000000, #48525C);
background: -moz-linear-gradient(#000000, #48525C);
background: -ms-linear-gradient(#000000, #48525C);
background: -o-linear-gradient(#000000, #48525C);
background: linear-gradient(#000000, #48525C);
-pie-background: linear-gradient(#000000, #48525C);
behavior: url(stylesheets/PIE/PIE.htc);
}
</style>
</head>
<body>
<div>
<table>
<tr>
<td style="width: 33%;text-align: center;">
<img src="images/traininglogo.png" />
</td>
<td style="width: 33%; text-align: center;">
<h1>Department Training Scheduler</h1>
</td>
<td style="width: 33%;text-align: center;">
<img src="images/traininglogo.png" />
</td>
</tr>
</table>
<hr>
</div>
</body>
</html>
【问题讨论】: