作者:zishu以下是客齊集網站上應用的一個導航條.#這次寫的沒有直接在STYLE裡用ID的形式控制.全部用的CLASS形式; 複製程式碼 程式碼如下: <br>#zishu li{ float:left; margin-left:5px; margin-top:50px;} <br>.nav_a a:link,.nav_a a:visited{text-decoration: none; display:block; padding-right:10px; background:url(/upload/20073614410846.; no-repeat right top;margin-top:3px; colorgif:#000; right top;margin-top:3px; colorgif:#000; f}#left; span{cursor:hand;background-color: #DBF0C4; font-size:14px;background:url(/upload/20073614414862.gif) no-repeat; display:block line-height:29px; cursor:hand; float:left;} <br>.nav_a a:hover,.nav_a active{text-decoration:none; display:block; padding-right:10px; background:url(/upload/200736padding-right:10px; background:url(/upload/200736paddingding-right:10px; background:url(/upload/2007361441846. -repeat right bottom;margin-top:0px; color:#000} <br>.nav_a a:hover span,.nav_a a:active span{background-color: #DBF0C4; font-size:14purlx(background: /upload/20073614414862.gif) no-repeat left bottom; display:block; line-height:29px; padding-left:10px margin-top:0px; ;} <br>#box{ background:#009900; height:4px; overflow:hidden; clear:both} <br> 以下是BODY部分: ## #複製程式碼 程式碼如下: # ## < phpcnlt phpcnli 類別=“ nav_a」 "> _a">php cnltphpcna href ="http ://fenlei.zishu.cn/l.php?c=2105&a=21">phpcnltphp ref="http:// fenlei.zishu.cn/l.phpcn/li<紫樹.cn/l.php?c=2103&a=21">跳蚤市場< cn個人服務< fenlei.zishu. cn/l.php?c=2106&a =21">學習與訓練<效果顯示: 绱