The place pointed to in the picture is written with p. The position is written based on absolute positioning. Now I want to use ng-repeat to achieve multiple such circles (if passed back If there are relevant values in the data), because ng-repeat is used, these ps need to share a css. If absolute positioning is used, all the boxes will be crowded together. How to achieve this?
Thank you for the invitation. In fact, you still have to use it
position:absoulte;
Zhang Xiaozhu also answered the method. ng-repeat can change the value according to the data, so that the round style can change the top and left values according to the setting changes without crowding. Together.
I wrote an example for your reference.
I don’t quite understand the meaning of the question. Since it has been positioned, the values of top and left can naturally be determined based on the data, thus achieving the purpose of creating circles at many different positions.
Guess what the big pig wants is float:left