------------------------------ Lili split line ------------------------------------
<Table cellpadding = "0" cellspacing = "0" width = "72%" Height = "30" border = "0">
<Tr>
<TD width = "33%" Height = "300" style = "filter: progid: DXImageTransform. Microsoft. Gradient
(Startcolorstr = '# ffff', endcolorstr =' # 3568cc', gradienttype = '0') "> 1 </TD>
<TD width = "33%" Height = "300" style = "filter: progid: DXImageTransform. Microsoft. Gradient
(Startcolorstr = '# ffff', endcolorstr =' # 3568cc', gradienttype = '1') "> 2 </TD>
<TD width = "33%" Height = "300" style = "filter: progid: DXImageTransform. Microsoft. Gradient
(Startcolorstr = '# ffff', endcolorstr =' # 3568cc', gradienttype = '2') "> 3 </TD>
</Tr>
</Table>
Use CSS to implement webpage background gradientCodeAs follows:
1. gradient from top to bottom
Example source code:
Body {
Filter: progid: DXImageTransform. Microsoft. gradient (gradienttype = 0, startcolorstr = # ffffff, endcolorstr = #000000 );
}
2. gradient from top left to bottom right
Example source code:
Body {
Filter: alpha (style = 1, opacity = 25, finishopacity = 100,
Startx = 50, finishx = 100, starty = 50, finishy = 100 );
Background-color: skyblue;
}
3. gradient from left to right
Example source code:
Body {
Filter: progid: DXImageTransform. Microsoft. gradient (gradienttype = 1, startcolorstr = # ffffff, endcolorstr = #000000 );
}
1. gradient from top to bottom
Example source code:
Body {
Filter: progid: DXImageTransform. Microsoft. gradient (gradienttype = 0, startcolorstr = # ffffff, endcolorstr = #000000 );
}
2. gradient from top left to bottom right
Example source code:
Body {
Filter: alpha (style = 1, opacity = 25, finishopacity = 100,
Startx = 50, finishx = 100, starty = 50, finishy = 100 );
Background-color: skyblue;
}
3. gradient from left to right
Example source code:
Body {
Filter: progid: DXImageTransform. Microsoft. gradient (gradienttype = 1, startcolorstr = # ffffff, endcolorstr = #000000 );
}
4. gradient from top to bottom
Example source code:
Style = "filter: progid: DXImageTransform. Microsoft. gradient (gradienttype = 0, startcolorstr = blue, endcolorstr = white );"
5. gradient from top to bottom
Example source code:
Style = "filter: progid: DXImageTransform. Microsoft. gradient (gradienttype = 0, startcolorstr = blue, endcolorstr = white );"
The following code uses CSS to implement a webpage background gradient: