Through the following code, you can generate some small dot decorative patterns on the background of your website. By default, it is used on the body element, but you can also use it on other containers in the web page.
body { background: radial-gradient(circle, white 10%, transparent 10%), radial-gradient(circle, white 10%, black 10%) 50px 50px; background-size: 100px 100px; }
The above is the detailed content of Share the code for generating small dot patterns using CSS. For more information, please follow other related articles on the PHP Chinese website!