undefinedfix
Sign in

How to realize a label random layout

detoro84 edited in Sat, 09 Jul 2022

Problem description

How to realize a random layout like this? There are many a labels with links behind them. They are randomly distributed within a certain range. The number and size of each row are different

5 Replies
Abdullah
commented on Sat, 09 Jul 2022

Define several class sizes, font colors, a label to give the maximum font line height, and then JS randomly give the class

openHBP
commented on Sat, 09 Jul 2022

Feel this should be based on the heat of it, the background students give a heat field, the front according to the heat of writing style

Christian
commented on Sat, 09 Jul 2022

To sort arrays randomly, if the number of each row is indefinite, the multidimensional array is used to cut the array into multiple arrays within the range length, and then < br / > line feed is used

Method sort splice

objectx
commented on Sun, 10 Jul 2022

The order of labels is first alphabetic. The font size is click or the content is hot. It should not be random

user614997
commented on Sun, 10 Jul 2022

Define several a label classes, and then randomly distribute them to the same horizontal line