如何使最小宽度的百分比工作在IE7? [英] How to make min-width in percentage work in in IE7?

查看:99
本文介绍了如何使最小宽度的百分比工作在IE7?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使{min-width:100%}在IE7中工作?在IE8 +和其他浏览器中工作正常。



我使用下拉菜单,下拉菜单的宽度应该取决于下拉列表中最长的文本,但不能小于父级的链接宽度。所以我添加了最小宽度:100%下拉。但它适用于其他浏览器,但不适用于IE7。



如何使其工作?



演示是在这里叉,玩它。在IE7中检查此项 http://codepen.io/jitendravyas/pen/AheDs

解决方案

请检查我认为它正是你要找的。

How to make {min-width:100%} work in in IE7? working fine in IE8+ and other browsers.

I'm using a dropdown menu where width of dropdown should depend on longest text in dropdown but not less then the parent's link width. So I added min-width:100% to dropdown. But it's working for other browsers but not for IE7.

How I can make it work?

Demo is here to fork and play with it. Check this in IE7 http://codepen.io/jitendravyas/pen/AheDs

解决方案

Please check This i think its exactly what you are looking for.

这篇关于如何使最小宽度的百分比工作在IE7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆