作者:梦幻小螳螂 | 来源:互联网 | 2023-09-06 01:31
IfIweretohaveablockofhtmlcodingthatisstylizedviacsssuchasthis:如果我有一个html编码块,通过css风
If I were to have a block of html coding that is stylized via css such as this:
如果我有一个html编码块,通过css风格化,如下所示:
Test Paragraph 1
test link 1
Test Paragraph 2
test link 2
Test Paragraph 3
test link 3
I want to be able to display a set of parts randomly together, (i.e. title 1, paragraph 1 and link 1 only). Then if I refresh it randomly shows 1, 2 or 3. But they need to stay together, like parts of 1 cannot show with part of 3 and so on.
我希望能够随机地一起显示一组部分(即标题1,第1段和链接1)。然后,如果我刷新它随机显示1,2或3.但他们需要保持在一起,像1的部分不能显示3的一部分,依此类推。
I know this is simple, but I can't figure out how to get them to show randomly together. Thanks in advance!
我知道这很简单,但我无法弄清楚如何让它们随机显示。提前致谢!
4 个解决方案