It is best to have a case address. Consider from the perspective of pictures: You may use border-image, or use a background image (there may be a parent container for the background image, and a sub-container for the content) ), as the child container is raised, the display area of the background image of the parent container increases. If it is code implementation: first make a few circles, and dynamically add p of the circle according to js
In fact, the main principle is to use the border-radius attribute of CSS. If a block element (such as p) sets this attribute to 50%, it will be displayed as a circle.
As for the hollow circle, the border attribute is used to set the border, and the border color is different from the background color.
The actual effect of the following code can be viewed online
It is best to have a case address.
Consider from the perspective of pictures: You may use
border-image
, or use a background image (there may be a parent container for the background image, and a sub-container for the content) ), as the child container is raised, the display area of the background image of the parent container increases.If it is code implementation: first make a few circles, and dynamically add p of the circle according to js
The small dots are dotted with a border, and the large current circle is made with the background image on the right row.
This is a timeline function with corresponding plug-in stamp
In fact, the main principle is to use the
border-radius
attribute of CSS. If a block element (such as p) sets this attribute to 50%, it will be displayed as a circle.As for the hollow circle, the
border
attribute is used to set the border, and the border color is different from the background color.The actual effect of the following code can be viewed online
Html
CSS
Final renderings