The below was the html and css code, and I want to ask the question: why the first-child does not work? Who can tell me,I will appreciate for your answer.
.footerLinks {
margin:0 auto;
list-style: none;
}
.show{
display: inline-block;
zoom:1;
*display:inline;
color:#eee;
padding:4px 14px;
border-top:1px solid rgba(0,0,0,0);
border-left:1px solid red;
}
.footerLinks li a:hover{
color: red;
border-top:1px solid #fff;
}
.footerLinks .show:first-of-type{
border-left:none;
}
<nav role='navigation'>
<ul class="footerLinks">
<li class="show-first"><a href="#">Home</a></li>
<li class="show"><a href="#">About</a></li>
<li class="show"><a href="#">Clients</a></li>
<li class="show"><a href="#">Contact Us</a></li>
</ul>
</nav>