html ul list style,html - CSS center ul list - Stack Overflow

徐星阑
2023-12-01

you dont need the div wrapper, make the li your footer.

avoid descendat selectors 'ul li' , use child selectors if you can 'ul > li'. its more effient

I think you can pull off the footer with just this:

CSS:

.footer-location {

width: 100%;

text-align: center;

list-style: none;

}

.footer-location > li {

color: #808080;

font-size: 12px;

font-family: Arial, Helvetica, sans-serif;

display:inline-block;

padding: 0 5px 3px 0;

}

 类似资料: