急急急!找到一个CSS+JS的下拉菜单,放进ASP代码里后,在IE6中不显示下拉菜单,在火狐上能完整显示?
.nav{width:980px;position:relative;margin:0pxauto;background:url(nav_bg.png)no-repeat...
.nav {
width:980px;
position: relative;
margin:0px auto;
background: url(nav_bg.png) no-repeat 0 -36px;
}
.navinner {
background: url(nav_bg.png) no-repeat 100% -72px;
}
.navlist {
height: 36px;
line-height: 36px;
overflow: hidden;
margin: 0 10px;
background: url(nav_bg.png) repeat-x 0 0;
}
.nav li {
float: left;
display: inline;
margin: 0 0 0 -2px;
padding: 0 4px 0 6px;
background: url(nav_bg.png) no-repeat 0 -108px;
}
.nav a {
display: block;
width: 102px;
text-align: center;
font-size: 120%;
}
.nav a:link, .nav a:visited {
color: #fff;
}
.nav a.current, .nav a:hover, .nav a:active {
color: #fff;
font-weight: bold;
background: url(nav_bg.png) no-repeat 50% -144px;
}
.subnav { /*显示目录*/
position: absolute;
top: 40px;
left: 0;
float: left;
height: 27px;
line-height: 27px;
white-space: nowrap;
background: url(nav_bg.png) no-repeat 0 -180px;
}
* html .subnav {
margin: 0 10px 0 -10px; /* IE 6 and below */
}
.subnav p {
padding: 0 10px;
background: url(nav_bg.png) no-repeat 100% -234px;
}
.subnav p span {
display: block;
background: url(nav_bg.png) repeat-x 0 -207px;
}
.subnav p.pointer {
position: absolute;
top: -4px;
left: 0;
height: 5px;
width: 11px;
padding: 0;
margin-left: 20px;
text-indent: -999em;
background: url(nav_bg.png) repeat-x 0 -261px;
}
.subnav a {
display: inline;
padding: 0;
font-size: 100%;
}
[class~="subnav"] a {
padding: 0 3px;
}
.subnav, .subnav a:link, .subnav a:visited {
color: #235e99;
}
.subnav a:hover, .subnav a:active {
color: #235e99;
}
.subnav a:hover, .subnav a:active {
font-weight: normal;
background: none;
border-bottom: 2px solid;
}
/* subnav position and pointer position */
#subnav1 { left: 120px; }
#subnav2 { left: 230px; }
#subnav3 { left: 340px; }
#subnav4 { left: 450px; }
#subnav5, #subnav6, #subnav7 {
left: auto;
right: 0px;
}
#subnav1 .pointer,
#subnav2 .pointer,
#subnav3 .pointer,
#subnav4 .pointer { left: 30px; }
#subnav5 .pointer { left: auto; right: 290px; }
#subnav6 .pointer { left: auto; right: 180px; }
#subnav7 .pointer { left: auto; right: 70px; }
#subnav1, #subnav2, #subnav3, #subnav4 {
min-width: 110px;
}
#subnav5 { min-width: 340px; }
#subnav6 { min-width: 240px; }
#subnav7 { min-width: 130px; }
/* Note
==========================================================*/
.note {
margin: 0 15px 10px;
color:#666666;
}
.note span{
float:right;
}
.disable {
display: none;
} 展开
width:980px;
position: relative;
margin:0px auto;
background: url(nav_bg.png) no-repeat 0 -36px;
}
.navinner {
background: url(nav_bg.png) no-repeat 100% -72px;
}
.navlist {
height: 36px;
line-height: 36px;
overflow: hidden;
margin: 0 10px;
background: url(nav_bg.png) repeat-x 0 0;
}
.nav li {
float: left;
display: inline;
margin: 0 0 0 -2px;
padding: 0 4px 0 6px;
background: url(nav_bg.png) no-repeat 0 -108px;
}
.nav a {
display: block;
width: 102px;
text-align: center;
font-size: 120%;
}
.nav a:link, .nav a:visited {
color: #fff;
}
.nav a.current, .nav a:hover, .nav a:active {
color: #fff;
font-weight: bold;
background: url(nav_bg.png) no-repeat 50% -144px;
}
.subnav { /*显示目录*/
position: absolute;
top: 40px;
left: 0;
float: left;
height: 27px;
line-height: 27px;
white-space: nowrap;
background: url(nav_bg.png) no-repeat 0 -180px;
}
* html .subnav {
margin: 0 10px 0 -10px; /* IE 6 and below */
}
.subnav p {
padding: 0 10px;
background: url(nav_bg.png) no-repeat 100% -234px;
}
.subnav p span {
display: block;
background: url(nav_bg.png) repeat-x 0 -207px;
}
.subnav p.pointer {
position: absolute;
top: -4px;
left: 0;
height: 5px;
width: 11px;
padding: 0;
margin-left: 20px;
text-indent: -999em;
background: url(nav_bg.png) repeat-x 0 -261px;
}
.subnav a {
display: inline;
padding: 0;
font-size: 100%;
}
[class~="subnav"] a {
padding: 0 3px;
}
.subnav, .subnav a:link, .subnav a:visited {
color: #235e99;
}
.subnav a:hover, .subnav a:active {
color: #235e99;
}
.subnav a:hover, .subnav a:active {
font-weight: normal;
background: none;
border-bottom: 2px solid;
}
/* subnav position and pointer position */
#subnav1 { left: 120px; }
#subnav2 { left: 230px; }
#subnav3 { left: 340px; }
#subnav4 { left: 450px; }
#subnav5, #subnav6, #subnav7 {
left: auto;
right: 0px;
}
#subnav1 .pointer,
#subnav2 .pointer,
#subnav3 .pointer,
#subnav4 .pointer { left: 30px; }
#subnav5 .pointer { left: auto; right: 290px; }
#subnav6 .pointer { left: auto; right: 180px; }
#subnav7 .pointer { left: auto; right: 70px; }
#subnav1, #subnav2, #subnav3, #subnav4 {
min-width: 110px;
}
#subnav5 { min-width: 340px; }
#subnav6 { min-width: 240px; }
#subnav7 { min-width: 130px; }
/* Note
==========================================================*/
.note {
margin: 0 15px 10px;
color:#666666;
}
.note span{
float:right;
}
.disable {
display: none;
} 展开
展开全部
IE6 有很多新功能是不支持的。 你这段代码的兼容性有问题造成的。 做网页, 最难整的就是这样的事。
你去 http://www.52css.com/css 这个网站,查一下代码中的各个CSS代码是不是兼容IE6, 找到问题后再想办法修改。
你去 http://www.52css.com/css 这个网站,查一下代码中的各个CSS代码是不是兼容IE6, 找到问题后再想办法修改。
追问
能直接帮忙解决一下么?谢谢
追答
不好意思,我这人比你还懒。其实解决方法告诉你了,自己去实践,才可以学到更多。
参考资料: http://www.52css.com/css
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
css问题不大, js呢?
有条件的话把html也贴上来.
有条件的话把html也贴上来.
追问
我找了好久,就是IE6不支持PNG透明图片的问题,按提供的办法做了,也还是不行。可否加为好友,帮忙处理一下
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
不仅要用IE6.0 还有7.0, 8.0因为WINDOWS 7 用户也 是很多的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询