淘宝导航栏CSS代码

html-css015

淘宝导航栏CSS代码,第1张

其实你说的不是很清楚,如果有什么不明白的再说:

首先是css:

 a{ color: #000000}

 a:hover {color: #fff background: #000 }

然后a标签

 <a href="@">点击按钮</a>

这些是a标签的一些样式

a  标签对是一个网站的一条信息链接定义的,a:link {}     /* 未访问的链接 */

a:visited {}  /* 已访问的链接 */

a:hover {}    /* 当有鼠标悬停在链接上 */

a:active {}   /* 被选择的链接 */

然后你下面的我大体的说一下

background:none没有背景;

border:none没有边框;

color:#000000font-size:15pxfont-weight:bold字体颜色是黑色的,大小15像素,加粗

background:transparent。意思就是背景透明。实际上background默认的颜色就是透明的属性。所以写和不写都是一样的

.skin-box-bd,.skin-box-bd .popup-container,.skin-box-bd .menu-list{border:none background:#000000 height:30px line-height:30px}

.skin-box-bd .popup-container .popup-icon{display:none}/*data-title="本代码由42zy.com自动生成"> */

.skin-box-bd .menu-list{height:30px line-height:30px}

.skin-box-bd .menu-list .menu,.skin-box-bd .menu-list .menu .link,.skin-box-bd .menu-list .menu .link .title{background:#000000 border:none color:#FFFFFF font-family:arial height:30px line-height:30px}

.skin-box-bd .menu-list .menu-hover,.skin-box-bd .menu-list .menu-hover .link,.skin-box-bd .menu-list .menu-hover .link .title{background:#FFFFFF color:#000000}/*data-title="本代码由42zy.com自动生成"> */

.skin-box-bd .all-cats-trigger,.skin-box-bd .all-cats-trigger .link,.skin-box-bd .all-cats-trigger .link .title{width:px height:30px line-height:30px background:# color:# border:none font-family:arial}

.skin-box-bd .all-cats-hover,.skin-box-bd .all-cats-hover .link,.skin-box-bd .all-cats-hover .link .title{background:# color:#}/*data-title="本代码由42zy.com自动生成"> */

.skin-box-bd .popup-content{width:px border:none background:#}

.skin-box-bd .popup-content .cat-icon{display:none}/*data-title="本代码由42zy.com自动生成"> */

.skin-box-bd .popup-content .cats-tree .fst-cat,.skin-box-bd .popup-content .cats-tree .fst-cat .fst-cat-name,.skin-box-bd .popup-content .menu-popup-cats .sub-cat,.skin-box-bd .popup-content .menu-popup-cats .sub-cat .cat-name{border:none height:px line-height:px color:# width:px overflow:hidden font-family:arial}

.skin-box-bd .popup-content .cats-tree cat-hd-hover,.skin-box-bd .popup-content .cats-tree .cat-hd-hover .fst-cat-name,.skin-box-bd .popup-content .menu-popup-cats .sub-cat-hover,.skin-box-bd .popup-content .menu-popup-cats .sub-cat-hover .cat-name{background:# color:#}/*data-title="本代码由42zy.com自动生成"> */

.skin-box-bd .popup-content .cats-tree .snd-pop .snd-pop-inner,.skin-box-bd .popup-content .cats-tree .snd-pop .snd-pop-inner .fst-cat-bd,.skin-box-bd .popup-content .cats-tree .snd-pop .snd-pop-inner .fst-cat-bd .snd-cat .snd-cat-hd .snd-cat-name{background:# width:px height:auto color:# font-family:arial}

.skin-box-bd .popup-content .cats-tree .snd-pop .snd-pop-inner .fst-cat-bd .snd-cat .snd-cat-hd-hover,.skin-box-bd .popup-content .cats-tree .snd-pop .snd-pop-inner .fst-cat-bd .snd-cat .snd-cat-hd-hover .snd-cat-name{background:# color:#}

.skin-box-bd .menu-list .menu-selected .link,.skin-box-bd .menu-list .menu-selected .link .title{background:#000000 cursor:pointer color:#FFFFFF border:none}

参考这个工具http://www.42zy.com/zx/9.html