ul在div中居中显示,不啰嗦了直接上css代码:
.nav {
text-align: center;
}
.nav ul {
display: inline-block;
height: 15px;
vertical-align: top;
}
.nav ul li {
display: inline-block;
}
ul在div中居中显示,不啰嗦了直接上css代码:
.nav {
text-align: center;
}
.nav ul {
display: inline-block;
height: 15px;
vertical-align: top;
}
.nav ul li {
display: inline-block;
}
链接到文章: https://ixvps.com/47397.html