时间:2021-05-26
以下是CSS内容部分: body{ font-size:12px; text-align:center; margin-top:30px; font-family:Verdana;} div,img{margin:0; padding:0; border:0;} ul,li{list-style-type: none; margin:0; padding:0; float:left; } #info{ margin-left:auto; margin-right:auto;width:760px; text-align:left;} #new{ margin-top:-12px;position: absolute;margin-left:-12px;} #nav{ height:30px; width:610px; margin-left:auto; margin-right:auto;} #nav li{margin-left:1px; height:30px;} #nav li a{ display:block;float:left; text-decoration:none; background-image: url(uploadfiles0/r200652134132.gif);background-repeat: no-repeat; display:block; background-position:left top;} #nav a span{cursor:hand; color:#000;background-image: url(uploadfiles0/v200652134115.gif);background-repeat: no-repeat; display:block;background-position: right top; padding:7px 10px 6px 10px; float:left; } #nav li a:active,#nav li a:hover {margin-top:0px; } #nav li a:active span,#nav li a:hover span {padding:10px 10px 6px 10px; margin-top:0px; display:block; color:#FFF;} #zishu01 a:link,#zishu01 a:visited {background-position: 0px -27px;} #zishu01 a:link span,#zishu01 a:visited span{background-position:right -27px;padding:10px 10px 6px 10px; margin-top:0; color:#FFF; font-weight:bold;} #zishu02 a,#zishu03 a,#zishu04 a,#zishu05 a,#zishu06 a,#zishu07 a,#zishu08 a,#zishu09 a,#zishu10 a,#zishu11 a{margin-top:3px;} #zishu02 a:active,#zishu02 a:hover {background-position: 0px -57px;} #zishu02 a:active span,#zishu02 a:hover span{background-position:right -57px;} #zishu03 a:active,#zishu03 a:hover {background-position: 0px -87px;} #zishu03 a:active span,#zishu03 a:hover span{background-position:right -87px;} #zishu04 a:active,#zishu04 a:hover {background-position: 0px -117px;} #zishu04 a:active span,#zishu04 a:hover span{background-position:right -117px;} #zishu05 a:active,#zishu05 a:hover {background-position: 0px -147px;} #zishu05 a:active span,#zishu05 a:hover span{background-position:right -147px;} #zishu06 a:active,#zishu06 a:hover {background-position: 0px -177px;} #zishu06 a:active span,#zishu06 a:hover span{background-position:right -177px;} #zishu07 a:active,#zishu07 a:hover {background-position: 0px -207px;} #zishu07 a:active span,#zishu07 a:hover span{background-position:right -207px;} #zishu08 a:active,#zishu08 a:hover {background-position: 0px -237px;} #zishu08 a:active span,#zishu08 a:hover span{background-position:right -237px;} #zishu09 a:active,#zishu09 a:hover {background-position: 0px -267px;} #zishu09 a:active span,#zishu09 a:hover span{background-position:right -267px;} #zishu10 a:active,#zishu10 a:hover {background-position: 0px -297px;} #zishu10 a:active span,#zishu10 a:hover span{background-position:right -297px;} #zishu11 a:link span,#zishu11 a:visited span{color:#FF6600;} #zishu11 a:active,#zishu11 a:hover {background-position: 0px -327px;} #zishu11 a:active span,#zishu11 a:hover span{background-position:right -327px;} #menu{ width:760px; height:26px; background:#FF9900;} #r1{border-top: 0px;border-bottom: 0px; border-left:3px solid #fff;border-right:3px solid #fff; height:1px; overflow:hidden;} #r2{border-top: 0px;border-bottom: 0px; border-left:2px solid #fff;border-right:2px solid #fff; height:1px; overflow:hidden;} #r3{border-top: 0px;border-bottom: 0px; border-left:1px solid #fff;border-right:1px solid #fff; height:1px; overflow:hidden;} 以下是引用片段:
仿淘宝网首页导航条效果 转载请注明出处 子鼠 www.zishu.cn 2006-05-21 凌晨03:05分
[Ctrl+A 全选 注:引入外部Js需再刷新一下页面才能执行]声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
本文实例讲述了DIV+CSS实现仿京东商城导航条效果。分享给大家供大家参考。具体如下:这里演示了DIV+CSS实现仿京东商城导航条功能代码,鼠标滑过导航条选项即
前面的话导航条Tab在页面中非常常见,本文说详细介绍CSS实现导航条Tab的三种方法布局根据上图所示,先规定几个定义,上图的模块整体叫做导航,由导航标题和导航内
本文实例讲述了JS+CSS实现带有碰撞缓冲效果的竖向导航条代码。分享给大家供大家参考。具体如下:这是一款碰撞缓冲效果的导航条,JavaScript妙味课堂奉献给
淘宝网店导航条具有了一个分类、正确引导的功效,因此许多淘宝网店都是有导航条的发生,但是导航条能够要还可以不必。不要想的,能够把导航条给掩藏起,那淘宝网店导航
先来看一下中英文切换的导航条效果图:我采用了两种方式实现,一种用css3,另一种是用jquery实现。首先说一下用css3如何实现:html:首页index首页