Jump to content
  • 0

проблема с ослом!


Gorik
 Share

Question

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="menu.css">
<script language="JavaScript">
function startMenu() {
if (document.getElementById) {
nav = document.getElementById('menu');
for (i=0; i<nav.childNodes.length; i++) {
node = nav.childNodes[i];
if (node.nodeName == 'LI') {
node.onmouseover = function() {
this.className = 'over';
}
node.onmouseout = function() {
this.className = '';
}
}
}
}
}
</script>

</head>
<body onLoad="startMenu()">
<ul id=menu>
<li><a style="background-image: url(img/triangle.gif)" class=brd>bsebsebserb</a>
<ul>
<li><a style="background-image: url(img/triangle.gif)" class=brd>drbdsbrdbsbr</a>
<ul>
<li><a href="about/nakaz.shtml" class=brd>srsarbserbrb</a></li>
<li><a href="about/statut.shtml" class=brd>srbsrbb</a></li>
<li><a href="about/kerivn.shtml" class=brd>btftbdrbdbr</a></li>
<li><a href="java script:ShowStructure()" class=brd>wewewewwew</a></li>
</ul>
</li>
<li><a href="about/divisions.shtml" class=brd>hjh,ghj,gj,gj,</a></li>
<li><a href="about/rems.shtml" class=brd>blahrthdrthrdhtr</a></li>
<li><a href="about/obladn.shtml" class=brd>fummmfmufumm</a></li>
<li><a href="about/newtechn.shtml" class=brd>fynfnfnfnyfnfy</a></li>
<li><a href="about/history.shtml" class=brd>fynfnnfnfnynfyn</a></li>
</ul>
</li>
<li><a href="./pers/Zmist.html" style="background-image: none" class=brd>fnyfnfnfynfynfnyfnyf</a>
</li>
<li><a href="strateg.shtml" style="background-image: none" class=brd>fynfnyyyyyyyyf</a>
</li>
<li><a href="zvern.shtml" style="background-image: none" class=brd>nfytntytyt</a></li>
<li><a href="dovidk.shtml" style="background-image: none" class=brd>ryrnrytrntreytty</a></li>
<li><a href="dovidk/taryf.htm" style="background-image: none" class=brd>eyneneyeyttheh</a></li>
<li><a href="jobs.php" style="background-image: none" class=brd>ehthetrhrrrete</a></li>
<li><a href="newsarch.php" style="background-image: none" class=brd>tehehretretert</a></li>
<li><a href="sitemap.shtml" style="background-image: none" class=brd>hterhtetghethett</a></li>
<li><a href="gbook/gbook.php" style="background-image: none" class=brd>ethetertherthet</a></li>
<li><a href="/cgi-bin/search.cgi" style="background-image: none" class=brd>erterdes</a></li>
</ul>
</body>
</html>

В Опере и Мозиле все гуд а в ИЕ глюк... Посоветуйте че нить плис!

код menu.css

 UL {
width: 140px;
list-style: none;
margin: 0px;
padding: 0px;
font-family: Arial, sans-serif;
font-size: 10pt
}
UL LI {
position: relative
}
LI UL {
position: absolute;
display: none;
top: 0px;
left: 152px;
z-index: 1
}
LI A {
display: block;
width: 100%;
padding: 5px;
text-decoration: none;
background:
url(img/triangle.gif)
right center
no-repeat;
color: #FFFFFF;
border: 1px solid #003399;
background-color: #003399;
border-bottom: none
}
LI UL LI A {
background-image: none;
z-index: 2
}
LI A:hover {
color: #000000;
background-color: #FFFFFF
}
LI:hover UL, LI.over UL {
display: block
}
.brd {
border-bottom: 1px solid #ccc
}

ЗЫ немного переработана менюшка bye Влад Мержевич

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Надо либо поставить другой доктайп, либо изменить код:

 LI UL {
position: absolute;
display: none;
top: 0px;
left: 152px;
//left: 140px;
z-index: 1
}

А так-же перенести под все li:

   <li>
<ul>
<li>
<ul>
<li><a href="about/nakaz.shtml" class=brd>srsarbserbrb</a></li>
<li><a href="about/statut.shtml" class=brd>srbsrbb</a></li>
<li><a href="about/kerivn.shtml" class=brd>btftbdrbdbr</a></li>
<li><a href="java script:ShowStructure()" class=brd>wewewewwew</a></li>
</ul>
<a style="background-image: url(img/triangle.gif)" class=brd>drbdsbrdbsbr</a>
</li>
<li><a href="about/divisions.shtml" class=brd>hjh,ghj,gj,gj,</a></li>
<li><a href="about/rems.shtml" class=brd>blahrthdrthrdhtr</a></li>
<li><a href="about/obladn.shtml" class=brd>fummmfmufumm</a></li>
<li><a href="about/newtechn.shtml" class=brd>fynfnfnfnyfnfy</a></li>
<li><a href="about/history.shtml" class=brd>fynfnnfnfnynfyn</a></li>
</ul>
<a style="background-image: url(img/triangle.gif)" class=brd>bsebsebserb</a>
</li>

Link to comment
Share on other sites

  • 0

Не знаю, я с рисунками не смотрел поскольку они фоновые и не должны ни на что влиять...

Вот это специально для ие:

  //left: 140px;

Остальные браузеры этого кода не видят. То есть Опера, Фаерфокс и тд будут видеть только left: 152px;

Link to comment
Share on other sites

  • 0

ну если можеш посмотри плис почему в ИЕ между пунктами(у которых есть подменюи соответственно фоновый рисунеок) основного меню появляэтса белая полоса!

заранее благодарен )

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

  • Обсуждения

    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com Портфолио https://www.behance.net/d4d4186e Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ    
    • Актуальные контакты: Telegram: @Nikker_web E-Mail:   tarasevich.email@gmail.com   Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ   Портфолио https://www.behance.net/d4d4186e
    • Доброго всем времени суток. Прошу помощи. Научите принципу изменения футера. Движок Xenforo. Версия 2.2.10. Стиль дефолтный. Что именно нужно в итоге на фото примере. Мой шаблон app.footer less имеет следующее значение.  .p-footer { .xf-publicFooter(); a { .xf-publicFooterLink(); } } .p-footer-inner { .m-pageWidth(); .m-pageInset(); padding-top: @xf-paddingMedium; padding-bottom: @xf-paddingLarge; } .p-footer-row { .m-clearFix(); margin-bottom: -@xf-paddingLarge; } .p-footer-row-main { float: left; margin-bottom: @xf-paddingLarge; } .p-footer-row-opposite { float: right; margin-bottom: @xf-paddingLarge; } .p-footer-linkList { .m-listPlain(); .m-clearFix(); > li { float: left; margin-right: .5em; &:last-child { margin-right: 0; } a { padding: 2px 4px; border-radius: @xf-borderRadiusSmall; &:hover { text-decoration: none; background-color: fade(@xf-publicFooterLink--color, 10%); } } } } .p-footer-rssLink { > span { position: relative; top: -1px; display: inline-block; width: 1.44em; height: 1.44em; line-height: 1.44em; text-align: center; font-size: .8em; background-color: #4682B4; border-radius: 2px; } .fa-rss { color: white; } } .p-footer-copyright { margin-top: @xf-elementSpacer; text-align: center; font-size: @xf-fontSizeSmallest; } .p-footer-debug { margin-top: @xf-paddingLarge; text-align: right; font-size: @xf-fontSizeSmallest; .pairs > dt { color: inherit; } } @media (max-width: @xf-responsiveMedium) { .p-footer-row-main, .p-footer-row-opposite { float: none; } .p-footer-copyright { text-align: left; padding: 0 4px; // aligns with other links } }  
    • Нужны сайты с примерами верстки, типа https://css-tricks.com/. Типовые приемы и нестандартные на все случаи жизни. Накидайте ссылок.
×
×
  • 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