1、如果导航条需要居中显示,背景图与导航条切合的部分也要在图中居中
2、.banner{height:260px;background:#b2d574 url(banner.jpg) center no-repeat}
3、导航条宽度与背景图切合部分宽度一致,并居中显示
1、如果导航条需要居中显示,背景图与导航条切合的部分也要在图中居中
2、.banner{height:260px;background:#b2d574 url(banner.jpg) center no-repeat}
3、导航条宽度与背景图切合部分宽度一致,并居中显示
转载于:https://www.cnblogs.com/dianlufenxi/p/5803567.html