<a> tag

时间:2016-09-18 08:44:32

标签: html css html5

I've been having this problem for a while now. I want to change the look of the "li a". I want one li a tag on one thing, and another and a second thing, but I can only change it once, then it will look like that on all the other places I used it, for example the . Sorry for explaining this so poorly. I have no idea what I'm talking about. Hope someone understands.

1 个答案:

答案 0 :(得分:0)

试试这个

定位所有偶数/不均匀列表项

li:nth-of-type(even) 

定位特定的迭代。在此示例中,您将定位每三个项目。

li:nth-of-type(n+2n)

定位一个特定的号码

li:nth-of-type(4)