<a href="" class="link">登录</a><a href="" class="link">注册</a><a href="" class="link">注册</a><a href="" class="link">注册</a>
a+a:before {
width: auto;
content: '';
font-size: 0;
padding: 10px 3px 1px;
margin-left: 6px;
border-left: 1px solid gray;
}