1. 程式人生 > >微信官網導航欄滑動門html+css

微信官網導航欄滑動門html+css

* { margin: 0; padding: 0; } li { list-style: none; } body { background: url(wx.jpg) repeat-x; } .nav li { float
: left; margin: 20px; } .nav .home a { /*1. a 左邊放 左圓角 但是文字需要往右走 15px*/ height: 33px; line-height: 33px; color: #FFFFFF; text-decoration: none; background
: url(to.png) no-repeat; display: inline-block; padding-left: 15px; } .nav .home span { /*2. span 右邊放右圓角 但是文字需要往左走 15px*/ background: url(to.png) no-repeat right; display: inline-block;
height: 33px; padding-right: 15px; } .nav .faq a { height: 33px; line-height: 33px; color: #FFFFFF; text-decoration: none; display: inline-block; padding-left: 15px; } .nav .faq span { display: inline-block; height: 33px; padding-right: 15px; } .nav .faq a:hover { background: url(ao.png) no-repeat; } .nav .faq a:hover span { font-weight: lighter; background: url(ao.png) right; }