Jump to content
  • 0

Меню


vvmupp
 Share

Question

2 answers to this question

Recommended Posts

  • 0

Устанавливаете Mozilla Firefox, добавляете в него расширение Firebug, потом Firebug'ом смотрите как сделано меню по этой ссылке - прописываете соответственно то же самое, попутно разбираясь в том, что делаете.

Link to comment
Share on other sites

  • 0

не работает активное меню.

css


/* Main Nav —*/
#mainnav{
background: #2C79B3 url(../images/nav.png) 0 0 repeat-x;
height: 44px;
margin: 0 0 25px;
}
#mainnav li {
background: none repeat scroll 0 0 transparent;
cursor: pointer;
display: block;
float: left;
margin: 0;
overflow: visible;
padding: 0;
}
#mainnav li a {
display: block;
font-weight: bold;
line-height: normal;
margin: 0;
padding: 12px 15px;
text-decoration: none;
color: #000000;
}
#mainnav ul li a.active, #mainnav ul li a.active:hover, #mainnav ul li a.active:active, #mainnav ul li a.active:focus{ background: none; }
#mainnav li a:hover, #mainnav li a:active, #mainnav li a:focus, #mainnav li a.sfhover, #mainnav ul li a.active:hover {
background: #2B6484 url(../images/nav-hover1.png) 0 0 repeat-x;
color: #1689D2;
}
#mainnav li a.active,
#mainnav li a.active:hover,
#mainnav li a.active:active,
#mainnav li a.active:focus {
background: #234b6d;
color: #fff;
}

код


<div id="mainnav">
<ul class="menu"
<li><a href="/" >1</a></li>
<li ><a href="/" >2</a></li>
<li class="active"><a href="/" >3</a></li></ul>
</div>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy