grammar background: linear-gradient(direction,color-stop1,color-stop2,...);
The first one background: linear-gradient(to left,#d3959b,#bfe6ba); to left sets the gradient from right The second background: linear-gradient(to right,#d3959b,#bfe6ba); The third background: linear-gradient(to top,#d3959b,#bfe6ba); The fourth background: linear-gradient(to bottom,#d3959b,#bfe6ba); The fifth background: linear-gradient(to top right,#d3959b,#bfe6ba); to right top The Sixth background: linear-gradient(45deg,#d3959b,#bfe6ba); There is a slight difference between " The seventh background: linear-gradient(45deg,#d3959b 20%,#bfe6ba); Specifies the starting color position in percentage. The default value is The eighth background: linear-gradient(to right,#feac5e,#c779d0,#4bc0c8); Ninth background: linear-gradient(45deg,#feac5e,#c779d0,#4bc0c8); The tenth background: linear-gradient(45deg,rgba(254,172,94,0.5),rgba(199,121,208,0.5),rgba(75,192,200,0.5)); This is the end of this article about CSS container background 10 color gradient Demo (linear-gradient()). For more related CSS container background color gradient content, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! |
<<: MySQL isolation level detailed explanation and examples
>>: Share 8 CSS tools to improve web design
This article shares the specific code of vue+elem...
Table of contents 1. Character Function 1. Case c...
First, let’s understand what Docker is? Docker is...
1》Be good at web design 2》Know how to design web p...
The future of CSS is so exciting: on the one hand,...
Table of contents The server runs jupyter noteboo...
There are many seemingly true "rumors" ...
Table of contents Installation-free version of My...
1. Check whether MySQL is installed yum list inst...
Table of contents Preface Source code Where do I ...
This article introduces the effect of website pro...
Today, there is such a requirement. If the logged...
There are many tools, components and programs for...
Note: You cannot use scoped animations! ! ! ! via...
This article uses examples to illustrate the basi...