另一个CSS菜单问题--- IE7问题 [英] Another CSS Menu Question --- Trouble with IE7
问题描述
我知道错误的论坛,但我尊重你们,所以我想我会试一试。我在IE7中遇到此网站的问题:
Wrong forum I know but I respect you guys here so I thought I'd give it a go. I'm having trouble with this site in IE7:
在所有浏览器(甚至IE6)中,下拉菜单< div>环绕链接增长到可用空间的100%。在IE7& IE8兼容模式,它只是链接文本的宽度。它看起来很糟糕,我不知道用它来做什么
。
In all browsers (even IE6) the drop menu <div> that surrounds the link grows to 100% of the space available. In IE7 & IE8 compatibility mode, it is only the width of the text of the link. It looks badly that way and I'm at a loss as what to do with it.
推荐答案
你给类menuDropBox一个最小宽度为170px。 但是包含的div class =" subMenu"没有指定最小宽度。 IE7将其缩小到只需要的东西。 给subMenu一个最小宽度,看看IE7中会发生什么。
You have given class menuDropBox a min-width of 170px. But the contained div class="subMenu" has no min-width specified. IE7 shrinks it to only what is needed. Give subMenu a min-width, and see what happens in IE7.
这篇关于另一个CSS菜单问题--- IE7问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!