0

I have an element, which Opera displays higher than it should be (53 instead of 35 px). So, I have tried to explicitly set the style of this jquery-ui element. When I look at the element with Dragonfly, this is what I see in styles:

.ui-tabs-nav { 
height: 35px;
max-height: 35px;
min-height: 35px;
padding: 0px;
vertical-align: bottom;
}

Looks like it is set (there would be strikethrough the rows otherwise, right?). Min-height, max-height and height the same - 35px. But this is what 'Computed style' looks like:

height: 53px;
max-height: none;
min-height: 35px;

Do you have any ideas on what might be wrong? Why is max-height property ignored and height is computed with digits (by chance) switched?

4

1 に答える 1

1

最小と最大の高さに同じ値を使用している理由を尋ねてもよいですか?アイテムの高さを35pxに制限しようとしている場合は、の使用を検討してoverflow:hiddenください。

.ui-tabs-nav { 
    height: 35px;
    overflow: hidden;
    padding: 0px;
    vertical-align: bottom;
    display: block; /* if it is not a block element already */
}
于 2012-11-09T14:19:16.393 に答える