ul在div中居中显示

ul在div中居中显示,不啰嗦了直接上css代码:

.nav {
    text-align: center;
}

.nav ul {
    display: inline-block;
    height: 15px;
    vertical-align: top;
}

.nav ul li {
    display: inline-block;
}

厂家CPU内存硬盘流量价格购买链接
RamNode11GB25GB-SSD500GB/mUSD $5购买
Linode11GB25GB-SSD1000GB/mUSD $5购买
DigitalOcean11GB25GB-SSD1000GB/mUSD $5/m购买
腾讯云Qcloud22GB50GB-SSD购买
Vultr11GB25GB-SSD1000GB/mUSD $5/m购买

Posted

in

by

Tags:

Comments

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注