nav ul li {
width: 155px;
display: inline-block;
text-align: center;
text-transform: uppercase;
font-weight: bold;
padding-top: 10px;
padding-bottom: 10px;
}
nav ul a {
text-decoration: none;
border-right: 1px solid #e8e8e8;
font-size: 13px;
height:19px;
padding-top: 7px;
padding-bottom: 7px;
margin-left: 36px;
}
如何将文字居中,因为border-right
的边缘? 正如您所看到的,我无法将文本居中对齐text-align
。如何将文本居中显示在边框的边缘
你可以添加你的html吗?并可能把它放在一个小提琴? –