Css网页背景渐变效果代码
点击下面的运行,可预览代码效果
代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Css实现背景渐变效果</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50"><div class="UBBPanel"><div class="UBBTitle"></div>
<div class="UBBContent"><style>
/*有暗红渐变到黑红*/
html{FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#AA0000,endColorStr=#400000)}
</style>
</div></div></td>
</tr>
<tr>
<td height="50"> </td>
</tr>
<tr>
<td height="50"> </td>
</tr>
<tr>
<td height="50"> </td>
</tr>
<tr>
<td height="50"> </td>
</tr>
<tr>
<td height="50"> </td>
</tr>
</table>
</body>
</html>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]