2

See this pastie in firefox. When resizing the browser window horizontally, then when the yellow area gets hidden a bit I want a horizontal scrollbar to appear. In Safari this code works fine. How would you style this for firefox?

I am using overflow:auto; I only want the scrollbar to appear when it makes sense, I don't want to see it all the time

4

3 回答 3

2

Firefox doesn't recognize overflow-x and overflow-y.

Instead use overflow:-moz-scrollbars-horizontal; or overflow:-moz-scrollbars-vertical;

This is a Mozilla Firefox specific hack so none of the other browsers should be affected.

于 2009-03-24T07:17:43.340 回答
0

The best to use would be overflow: auto; this will add a scroll bar only when needed.

于 2009-03-24T07:15:10.677 回答
0

指定一些宽度,然后“溢出:滚动;”

于 2009-03-24T07:35:26.387 回答