color doesn't work
This question already has an answer here:
Having all your children , in this case all the -li- elements floated, will collapse the height of the parent, reason why you can't see your background.
You could fix this by either setting a specific height for your -ul or maybe using something like clearfix.
链接地址: http://www.djcxy.com/p/88426.html上一篇: 包含<ul>的<div>的背景颜色
下一篇: 颜色不起作用