网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

CSS3怎么实现竖形无限级导航特效

这篇文章主要介绍了CSS3怎么实现竖形无限级导航特效的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇CSS3怎么实现竖形无限级导航特效文章都会有所收获,下面我们一起来看看吧。

我们提供的服务有:网站设计制作、成都网站设计、微信公众号开发、网站优化、网站认证、无为ssl等。为上1000家企事业单位解决了网站和推广的问题。提供周到的售前咨询和贴心的售后服务,是有科学管理、有技术的无为网站制作公司

html代码:



css3代码:

.W1-h26 {
padding: 0;
margin: 0;
border: 0;
line-height: 1;
}
.W1-h26 ul,
.W1-h26 ul li,
.W1-h26 ul ul {
list-style: none;
margin: 0;
padding: 0;
}
.W1-h26 ul {
position: relative;
z-index: 500;
float: left;
}
.W1-h26 ul li {
float: left;
min-height: 0.05em;
line-height: 1em;
vertical-align: middle;
position: relative;
}
.W1-h26 ul li.hover,
.W1-h26 ul li:hover {
position: relative;
z-index: 510;
cursor: default;
}
.W1-h26 ul ul {
visibility: hidden;
position: absolute;
top: 100%;
left: 0px;
z-index: 520;
width: 100%;
}
.W1-h26 ul ul li {
float: none;
}
.W1-h26 ul ul ul {
top: 0;
right: 0;
}
.W1-h26 ul li:hover > ul {
visibility: visible;
}
.W1-h26 ul ul {
top: 0;
left: 99%;
}
.W1-h26 ul li {
float: none;
}
.W1-h26 ul ul {
margin-top: 0.05em;
}
.W1-h26 {
width: 13em;
background: #333333;
font-family: 'Oxygen Mono', Tahoma, Arial, sans-serif;
zoom: 1;
}
.W1-h26:before {
content: '';
display: block;
}
.W1-h26:after {
content: '';
display: table;
clear: both;
}
.W1-h26 a {
display: block;
padding: 1em 1.3em;
color: #ffffff;
text-decoration: none;
text-transform: uppercase;
}
.W1-h26 > ul {
width: 13em;
}
.W1-h26 ul ul {
width: 13em;
}
.W1-h26 > ul > li > a {
border-right: 0.3em solid #1b9bff;
color: #ffffff;
}
.W1-h26 > ul > li > a:hover {
color: #ffffff;
}
.W1-h26 > ul > li a:hover,
.W1-h26 > ul > li:hover a {
background: #1b9bff;
}
.W1-h26 li {
position: relative;
}
.W1-h26 ul li.has-sub > a:after {
content: '»';
position: absolute;
right: 1em;
}
.W1-h26 ul ul li.first {
-webkit-border-radius: 0 3px 0 0;
-moz-border-radius: 0 3px 0 0;
border-radius: 0 3px 0 0;
}
.W1-h26 ul ul li.last {
-webkit-border-radius: 0 0 3px 0;
-moz-border-radius: 0 0 3px 0;
border-radius: 0 0 3px 0;
border-bottom: 0;
}
.W1-h26 ul ul {
-webkit-border-radius: 0 3px 3px 0;
-moz-border-radius: 0 3px 3px 0;
border-radius: 0 3px 3px 0;
}
.W1-h26 ul ul {
border: 1px solid #0082e7;
}
.W1-h26 ul ul a {
color: #ffffff;
}
.W1-h26 ul ul a:hover {
color: #ffffff;
}
.W1-h26 ul ul li {
border-bottom: 1px solid #0082e7;
}
.W1-h26 ul ul li:hover > a {
background: #4eb1ff;
color: #ffffff;
}
.W1-h26.align-right > ul > li > a {
border-left: 0.3em solid #1b9bff;
border-right: none;
}
.W1-h26.align-right {
float: right;
}
.W1-h26.align-right li {
text-align: right;
}
.W1-h26.align-right ul li.has-sub > a:before {
content: '+';
position: absolute;
top: 50%;
left: 15px;
margin-top: -6px;
}
.W1-h26.align-right ul li.has-sub > a:after {
content: none;
}
.W1-h26.align-right ul ul {
visibility: hidden;
position: absolute;
top: 0;
left: -100%;
z-index: 598;
width: 100%;
}
.W1-h26.align-right ul ul li.first {
-webkit-border-radius: 3px 0 0 0;
-moz-border-radius: 3px 0 0 0;
border-radius: 3px 0 0 0;
}
.W1-h26.align-right ul ul li.last {
-webkit-border-radius: 0 0 0 3px;
-moz-border-radius: 0 0 0 3px;
border-radius: 0 0 0 3px;
}
.W1-h26.align-right ul ul {
-webkit-border-radius: 3px 0 0 3px;
-moz-border-radius: 3px 0 0 3px;
border-radius: 3px 0 0 3px;
}

关于“CSS3怎么实现竖形无限级导航特效”这篇文章的内容就介绍到这里,感谢各位的阅读!相信大家对“CSS3怎么实现竖形无限级导航特效”知识都有一定的了解,大家如果还想学习更多知识,欢迎关注创新互联行业资讯频道。


分享名称:CSS3怎么实现竖形无限级导航特效
标题链接:http://bjjierui.cn/article/gjsjsp.html

其他资讯