Jump to content
  • 0

Неправильное построение DOM в ie7


Enclave
 Share

Question

На сайте есть меню вверху с разделителем. Меню сделано списком. Разделители - div.sep

<ul class="menu" id="topmenu">
<li class="item-101 current active"><a href="/" >На главную</a></li>
<div class="sep"></div>
<li class="item-102"><a href="/index.php/about" >О проекте</a></li>
<div class="sep"></div>
<li class="item-103"><a href="/index.php/news" >Новости</a></li>
<div class="sep"></div>
<li class="item-104"><a href="/index.php/advertisers" >Рекламодателям</a></li>
<div class="sep"></div>
<li class="item-105"><a href="/index.php/contacts" >Контакты</a></li></ul>
<div class="clear"></div>

Но в ie7 DOM перестраивается и разделители оказываются внутри li! Вот так:

<ul class="menu" id="topmenu">
<li class="item-101 current active">
<a href="/" options="[object Object]" iswrapped="1">На главную</a>
<div class="sep"></div>
</li>
<li class="item-102">
<a href="/index.php/about" options="[object Object]" iswrapped="1">О проекте</a>
<div class="sep"></div>
</li>
<li class="item-103">
<a href="/index.php/news" options="[object Object]" iswrapped="1">Новости</a>
<div class="sep"></div>
</li>
<li class="item-104">
<a href="/index.php/advertisers" options="[object Object]" iswrapped="1">Рекламодателям</a>
<div class="sep"></div>
</li>
<li class="item-105">
<a href="/index.php/contacts" options="[object Object]" iswrapped="1">Контакты</a>
</li>
</ul>
<div class="clear"></div>

Doctype: XHTML 1.0 Strict или Transitional, везде глюк.

Почему так происходит? В ie8 тоже самое было, но забыл тогда doctype указать. А сейчас что?

Edited by Enclave
Link to comment
Share on other sites

2 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