In page development, some small graphics are often needed to beautify the page. These graphics can be displayed in the form of pictures, but it takes time to load the pictures each time the page is loaded. So how to implement these graphics using CSS? This chapter will introduce to you how to use CSS to draw some small graphics using border and border-radius (code examples). It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
Most of us know that the border attribute has four parameters, so border-radius must also have four parameters.
We know that the four parameters of the border attribute are border-top, border-right, and border. -bottom, border-left.(clockwise)
So what are the four parameters of border-radius?
border-radius: top left, top right, bottom right, bottom left;
Below we use border-radius to draw some common pictures.
1.Simple circle
Rendering:
The above is the detailed content of How to use css to draw some small graphics using border and border-radius (code example). For more information, please follow other related articles on the PHP Chinese website!