css3 stigninger

, hvad er stigninger?gradienter viser en kombination af to eller flere farver som vist nedenfor −,, former for stigninger, lineære stigninger (//venstre /højre - /diagonalt), radialdæk stigninger, lineære stigninger, lineære stigninger er vant til at arrangere to eller flere farver på lineær formater, som fra top til bund, top til bunden, < html > < head > < stil >&#grad1 (højde: 100px; baggrund: - webkit lineær gradient (lyserødt, grøn); baggrund: - o-linear-gradient (lyserødt, grøn); baggrund: - moz lineær gradient (lyserødt, grøn); baggrund: lineær gradient (lyserødt, grønne)} < /stil > < /head > < krop > < div id = "grad1" > < /div > < /organ > <. /html> ,It will produce the following result −, ,Left to right, <html> <head> <style> #grad1 { height: 100px; background: -webkit-linear-gradient(left, red , blue); background: -o-linear-gradient(right, red, blue); background: -moz-linear-gradient(right, red, blue); background: linear-gradient(to right, red , blue); } </style> </head> <body> <div id="grad1"></div> </body> </html> ,It will produce the following result −, ,Diagonal,Diagonal starts at top left and right button, <html> <head> <style> #grad1 { heibekæmpelse af: 100px; baggrund: - webkit lineær gradient (venstre top, røde, blå); baggrund: - o-linear-gradient (nederste højre, røde, blå); baggrund: - moz lineær gradient (nederste højre, røde, blå); baggrund: lineær gradient (nederste højre, røde, blå). <. /stil > < /head > < krop > < div id = "grad1" > < /div > < /organ > < /html > det giver følgende resultat −,, multi - farve, < html > < head > < stil >&#grad2 (højde: 100px; baggrund: - webkit lineær gradient (røde og orange, gul, rød, blå, grøn, lyserød); baggrund: - o-linear-gradient (rødt orange, gul, red, blue, green,pink); background: -moz-linear-gradient(red, orange, yellow, red, blue, green,pink); background: linear-gradient(red, orange, yellow, red, blue, green,pink); } </style> </head> <body> <div id="grad2"></div> </body> </html> ,It will produce the following result −, ,CSS3 Radial Gradients,Radial gradients appears at center, <html> <head> <style> #grad1 { height: 100px; width: 550px; background: -webkit-radial-gradient(red 5%, green 15%, pink 60%); background: -o-radial-gradient(red 5%, green 15%, pink 60%); background: -moz-radial-gradient(red 5%, green 15%, pink 60%); background: radial-gradient(red 5%, green 15%, pink 60%); } </style> </head> <body> <div id="grad1"></div> </body> </html> ,It will produce the following result −, ,CSS3 Repeat Radial Gradients, <html> <head> <style> #grad1 { height: 100px; width: 550px; background: -webkit-repeating-radial-gradient(blue, yellow 10%, green 15%); background: -o-repeating-radial-gradient(blue, yellow 10%, green 15%); background: -moz-repeating-radial-gradient(blue, yellow 10%, green 15%); background: repeating-radial hældning (blå, gul, grøn, 10%, 15%);} < /stil > < /head > < krop > < div id = "grad1" > < /div > < /organ > < /html > det giver følgende resultat &minus,,,



Previous:
Next Page: