Home  >  Article  >  Web Front-end  >  How to add random text to css? _html/css_WEB-ITnose

How to add random text to css? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:03:141500browse

If 9 li have been generated, I want to randomly add in front of the content:


  • Content1

  • & Lt; li & gt; content 3 & lt;/li & gt;
    & lt; li & gt; content 4 & lt;
    & lt; li & gt; content 5 & li & gt;
    & lt; li & gt; Content 6 & lt; /li>
                                                                            
    I want to randomly add text in front of the content. for example. The eldest, the second, the third.
    The final effect is as follows:

                                                                    The second child’s content 3
                                                                                                 li>
                                                  < >


    How to operate? ? ?





    Reply to discussion (solution)


    < ul>
                                                                                Content 4< ;/li>
                                              ; Content 8

  • Content 9