css中设置line-height而引起的布局问题

2024-12-03 01:56:40
推荐回答(1个)
回答1:

css的最后两行改为:
footer>section>div.bar li div:first-child{display: inline-block;border-radius: 50%;height: 2px;width: 2px;content: "";background-color: #fff;margin-right: 4px;vertical-align: 80%;}
footer>section>div.bar li div:last-child{display: inline-block;width: 16px;height: 2px;content: "";background-color: #fff;vertical-align: 80%;}