zareei_ta
دوشنبه 02 آبان 1390, 09:37 صبح
من منو با ul,li ساختم که ایتم های منو را در ie7,6 نشون نمیده ولی در بقیه مرورگرها نشون میده.
css ها به صورت زیر نوشتم.
.rhm1{
width:800px;
height:64px;
margin:0 auto;
background:url(Images/MasterPage/rhm1_bg.gif) repeat-x;
position:relative;
top:20px;
/*right:120px;*/
}
.rhm1-left{
background:url(Images/MasterPage/rhm1_l.gif) no-repeat;
width:15px;
height:64px;
float:left;
}
.rhm1-right{
background:url(Images/MasterPage/rhm1_r.gif) no-repeat;
width:15px;
height:64px;
float:right;
}
.rhm1-bg{
background:url(Images/MasterPage/rhm1_bg.gif) repeat-x;
height:64px;
float:right;
/*width:800px;*/
}
.rhm1-bg ul{
list-style:none;
margin:0 auto;
display:inline;
float:left;
height: 47px;
}
.rhm1-bg li{
float:right;
list-style:none;
display:inline;
}
.rhm1-bg li a{
float:right;
/*display:block;*/
color:#ffe8cc;
text-decoration:none;
font:12px 'Lucida Sans', sans-serif;
font-weight:bold;
padding:0 0 0 18px;
height:64px;
line-height:40px;
text-align:center;
cursor:pointer;
}
.rhm1-bg li a span{
float:right;
display:block;
padding:0 32px 0 18px;
}
.rhm1-bg li.current a{
color:#fff;
background:url(Images/MasterPage/rhm1_hover_l.gif) no-repeat left 5px;
}
.rhm1-bg li.current a span{
color:#fff;
background:url(Images/MasterPage/rhm1_hover_r.gif) no-repeat right 5px;
}
.rhm1-bg li a:hover{
color:#fff;
background:url(Images/MasterPage/rhm1_hover_l.gif) no-repeat left 5px;
}
.rhm1-bg li a:hover span{
color:#fff;
background:url(Images/MasterPage/rhm1_hover_r.gif) no-repeat right 5px;
}
css ها به صورت زیر نوشتم.
.rhm1{
width:800px;
height:64px;
margin:0 auto;
background:url(Images/MasterPage/rhm1_bg.gif) repeat-x;
position:relative;
top:20px;
/*right:120px;*/
}
.rhm1-left{
background:url(Images/MasterPage/rhm1_l.gif) no-repeat;
width:15px;
height:64px;
float:left;
}
.rhm1-right{
background:url(Images/MasterPage/rhm1_r.gif) no-repeat;
width:15px;
height:64px;
float:right;
}
.rhm1-bg{
background:url(Images/MasterPage/rhm1_bg.gif) repeat-x;
height:64px;
float:right;
/*width:800px;*/
}
.rhm1-bg ul{
list-style:none;
margin:0 auto;
display:inline;
float:left;
height: 47px;
}
.rhm1-bg li{
float:right;
list-style:none;
display:inline;
}
.rhm1-bg li a{
float:right;
/*display:block;*/
color:#ffe8cc;
text-decoration:none;
font:12px 'Lucida Sans', sans-serif;
font-weight:bold;
padding:0 0 0 18px;
height:64px;
line-height:40px;
text-align:center;
cursor:pointer;
}
.rhm1-bg li a span{
float:right;
display:block;
padding:0 32px 0 18px;
}
.rhm1-bg li.current a{
color:#fff;
background:url(Images/MasterPage/rhm1_hover_l.gif) no-repeat left 5px;
}
.rhm1-bg li.current a span{
color:#fff;
background:url(Images/MasterPage/rhm1_hover_r.gif) no-repeat right 5px;
}
.rhm1-bg li a:hover{
color:#fff;
background:url(Images/MasterPage/rhm1_hover_l.gif) no-repeat left 5px;
}
.rhm1-bg li a:hover span{
color:#fff;
background:url(Images/MasterPage/rhm1_hover_r.gif) no-repeat right 5px;
}