有了这个
a:nth-child(n)::before
{
content: "› ";
}
a:nth-child(n+1)::before
{
content: "›› ";
}
a:nth-child(n+2)::before
{
content: "››› ";
}
a:nth-child(n+3)::before
{
content: "›››› ";
}
a:nth-child(n+4)::before
{
content: "››››› ";
}
我想得到
› a1
>> a2
››› a3
›››› a4
››››› a5
但它不起作用...需要帮助,也尝试使用 1,2,3,4,5 而不是 n+1 等...但这也不起作用。