Jump to content
  • 0

Проблемы с динамическим меню


YaD
 Share

Question

Реализую выпадающее горизонтальное меню по такому принципу:

<ul class="menu-h-d"> 
<li><a href="/index.html" title="">Главная</a></li>

<li><a href="/product.html" title="">Продукция и услуги</a>
<ul>
<li><a href="/prod.html" title="" >Продукция</a></li>
<li><a href="/arenda.html" title="">Аренда</a></li>
</ul>
</li>
<li><a href="/docs.html" title="">Документы</a>
<ul>
<li><a href="/ustav.html" title="">Устав</a></li>
<li><a href="/otchet.html" title="">Годовые отчеты</a></li>
<li><a href="/dir.html" title="">Совет директоров</a></li>

</ul>
</li>

<li><a href="/contact.html" title="">Контакты</a>
<ul>
<li><a href="/adress.html" title="">Адрес, телефон</a></li>
<li><a href="/proezd.html" title="">Схема проезда</a></li>
</ul>
</li>
<li><a href="/friends.html" title="">Сотрудничество</a>
<ul>
<li><a href="/forma.html" title="">Прием заказов</a></li>
<li><a href="/recv.html" title="">Реквизиты</a></li>
</ul>
</li>
<li><a href="http://oaoniim.ru/news/news.php?id=oll_news" title="Новости">Новости</a></li>
<li><a href="/about.html" title="">Об институте</a></li>
</ul>

CSS:

.menu-h-d { 
min-height: 24px;
border-left: 0px solid #fff;
}
.menu-h-d li {
float: left;
display: block;
position: relative;
border: 0px solid #fff;
border-width: 1px 1px 1px 0px;
list-style-image: url ('/img/tr.jpg');
font-size: 11pt;
}
.menu-h-d a {
text-decoration: none;
padding: 2px 10px;
display: block;

}

.menu-h-d ul {
display: none;
position: absolute;
top: 22px;
left: -1px;
width: 160px;
background: #fff;
border: 0;
border-bottom: none;
margin: 0; /* Нет отступов вокруг */
padding: 0;
font-size: 11pt;
}
.menu-h-d ul ul {
left: 100%;
top: -1px;
}

.menu-h-d li li {
float: none;
border-width: 0px 0px 0px 0px; }

.menu-h-d li:hover {
color: black;
}

.menu-h-d a:hover {
background-image: url ('/img/tr.jpg');
color: red;
}
.menu-h-d li:hover ul,
.menu-h-d li:hover ul li:hover ul,
.menu-h-d li:hover ul li:hover ul li:hover ul { display: block; }

.menu-h-d li:hover ul ul,
.menu-h-d li:hover ul li:hover ul ul { display: none; }

В ИЕ, ФФ меню отображается нормально. В опере 10.50 вместо динамического меню отображается обычная строчка с ссылками первого уровня. В чем проблема и что посоветуете?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

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