IE6 min-height dilemma

前端 未结 4 682
野的像风
野的像风 2021-02-10 08:00

Here is my site: http://smartpeopletalkfast.co.uk/ppp/home-page.html

I want the input forms to be the same height as the buttons to their right. I\'ve done this with a m

4条回答
  •  广开言路
    2021-02-10 08:45

    In Internet Explorer 6, height is treated as min-height and min-height is not supported.

    So you can write a rule which targets only IE6 to fix this. Let's say that you have the following:

    #navigation .nav-menu-item {
        min-height:50px;
    }
    

    In order to have the same effect in IE6 you could add a second rule which only IE6 will recognize. I tend to use the star HTML hack:

    #navigation .nav-menu-item {
        min-height:50px;
    }
    * html #navigation .nav-menu-item { /* for IE6 */
        height:50px;
    }
    

    You can read more here.

提交回复
热议问题