用网页技术CSS实现网页背景渐变的四种代码设置
2010-07-07 19:01
736 查看
用网页技术CSS实现网页背景渐变的四种代码设置。
一、从上往下渐变
二、从左上至右下渐变 Chinaz.com
三、从左往右渐变
四、从上往下渐变
举例如:
<!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>背景渐变</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="600" style="filter:progid:DXImageTransform.microsoft.gradient(gradienttype=0,startColorStr=blue,endColorStr=white);"> </td>
</tr>
</table>
</body>
</html>
一、从上往下渐变
以下为引用的内容: body{ FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#ffffff,endColorStr=#000000); } |
以下为引用的内容: body{ FILTER: Alpha( style=1,opacity=25,finishOpacity=100, startX=50,finishX= 100,startY=50,finishY=100); background-color: skyblue; } Chinaz.com |
以下为引用的内容: body{ FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=1,startColorStr=#ffffff,endColorStr=#000000); } |
以下为引用的内容: style="filter:progid:DXImageTransform.microsoft.gradient(gradienttype=0,startColorStr=blue,endColorStr=white);" |
<!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>背景渐变</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="600" style="filter:progid:DXImageTransform.microsoft.gradient(gradienttype=0,startColorStr=blue,endColorStr=white);"> </td>
</tr>
</table>
</body>
</html>
相关文章推荐
- 用网页技术CSS实现网页背景渐变的四种代码设置
- CSS 网页背景渐变实现代码
- 用css实现网页背景渐变的代码
- 用css实现网页背景渐变的代码
- CSS实现网页背景颜色渐变效果的代码
- 用css实现网页背景渐变的代码
- CSS实现网页背景渐变
- CSS实现网页背景渐变
- div背景颜色怎样渐变 css实现div层背景颜色渐变代码
- 用css实现网页背景渐变
- CSS实现网页背景颜色渐变的效果(火狐浏览器,IE,)
- 用css实现网页背景渐变
- CSS控制网页背景颜色的渐变代码
- JS+CSS实现的漂亮渐变背景特效代码(6个渐变效果)
- css实现网页背景渐变
- CSS实现网页背景颜色渐变的效果。
- 网页设计CSS实现网页背景渐变
- CSS实现网页背景渐变
- JS+CSS实现的漂亮渐变背景特效代码(6个渐变效果)
- linear-gradiend CSS实现网页背景网格效果