标题:
新手求救~
[打印本页]
作者:
夏后雨
时间:
2011-5-20 10:35
标题:
新手求救~
大家好,我是新来的
本人正在制作一网页,顶部菜单是用DIV+CSS
但有一问题,也就是不懂CSS如何HACK
在IE7-8 显示正常:
在IE6就全变样了~
哪个大哥大姐,能帮小弟一忙,看看什么 个HACK法,仅MENU这一项就行
作者:
夏后雨
时间:
2011-5-20 10:40
网址:http://www.20071212.com/wa4/main.htm
其中的style.css里针对于menu的样式:
#menu{
width:924px;
height:44px;
margin:0px auto 0 auto;
overflow:hidden;
background: none;
}
.menu{
margin:0 1px 0 0;
padding:0;
}
.menu dt{
margin-right:0px;
float:left;
}
.menu dt a{
background:url(../images/top_menu_button.png) no-repeat bottom;
width:132px;
height:44px;
line-height:44px;
display:block;
text-align:center;
text-decoration: none;
color:#FFFFFF;
font-family:"微软雅黑";
font-size:14px;
behavior: url("../iepngfix.htc");
}
.menu dt a:hover{
background:url(../images/top_menu_button_hover.png) no-repeat bottom;
width:132px;
height:44px;
line-height:44px;
display:block;
text-align:center;
text-decoration:underline;
color:#FFFFFF;
font-family:"微软雅黑";
font-size:14px;
font-weight:bold;
behavior: url("../iepngfix.htc")
}
.menu .hover{
background:url(../images/top_menu_button_hover.png) no-repeat bottom;
width:132px;
height:44px;
line-height:44px;
display:block;
text-align:center;
text-decoration:underline;
color:#FFFFFF;
font-family:"微软雅黑";
font-size:14px;
font-weight:bold;
behavior: url("../iepngfix.htc")
}
.menu .hover a{
background:url(../images/top_menu_button_hover.png) no-repeat bottom;
width:132px;
height:44px;
line-height:44px;
display:block;
text-align:center;
text-decoration:underline;
color:#FFFFFF;
font-family:"微软雅黑";
font-size:14px;
font-weight:bold;
behavior: url("../iepngfix.htc")
}
.menu .quit{
background: none;
}
.menu .quit a{
background: none;
}
作者:
css2010
时间:
2011-5-20 10:48
.menu dt a{
background:url(../images/top_menu_button.png) no-repeat bottom;
width:132px;
height:44px;
line-height:44px;
display:block;
text-align:center;
text-decoration: none;
color:#FFFFFF;
font-family:"微软雅黑";
font-size:14px;
behavior: url("../iepngfix.htc");
}
有问题,最好加个浮动,
你本身是一DL就有问题,使用li
作者:
夏后雨
时间:
2011-5-20 11:37
哦?~那我试试~
作者:
夏后雨
时间:
2011-5-20 15:31
还是不行呀~高手们,帮忙啊~
欢迎光临 CSS论坛 (http://www.divcss5.com/bbs/)
Powered by Discuz! 6.1.0