Jump to content
  • 0

проблема с relative в IE8


Odrin
 Share

Question

Добрый день.

Столкнулся с проблемой в нашем любимом IE.

HTML -


<div class="edit_head">
<div class="edit_pict"><img src="img/icons/radiation32.png"></div>
<div class="pict_menu" style="display: none;">
<div class="img_panel"><img src="img/icons/fire32.png"></div><div class="img_panel current"><img src="img/icons/radiation32.png"></div><div class="img_panel"><img src="img/icons/biohazard32.png"></div><div class="img_panel"><img src="img/icons/drop32.png"></div><div class="img_panel"><img src="img/icons/voltage32.png"></div><div class="img_panel"><img src="img/icons/warning32.png"></div>
</div>
</div>

CSS -


.edit_head {
height: 40px;
margin-top: 5px;
width: 100%;
float: left;
}
.pict_menu {
background-color: #FFFFFF;
border-color: #CCCCCC;
border-radius: 0 0 5px 5px;
border-style: solid;
border-width: 0 1px 1px;
box-shadow: 3px 3px 3px 0 rgba(0, 0, 0, 0.3);
display: none;
padding: 10px 5px;
position: relative;
width: 100%;
}

Так вот. Когда меняем у .pict_menu display на block (в js, нужно отобразить панельку выпадающую), во всех нормальных браузерах родительский div (.edit_head) не растягивается, а в IE8 растягивается! Почему так и как это исправить? Гуглуние по "ie relative bug" приводит только к багам ie6-7.

Edited by Odrin
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