如何让firefox显示一个自动水平scollbar一个div? [英] How to get firefox to show an auto horizontal scollbar for a div?

查看:83
本文介绍了如何让firefox显示一个自动水平scollbar一个div?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请在Firefox中查看这个糕点。当水平调整浏览器窗口大小时,当黄色区域隐藏了一点,我想要一个水平滚动条出现。在Safari这个代码工作正常。

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?

我使用overflow:auto;

推荐答案

p> Firefox无法识别 overflow-x overflow-y

而是使用 overflow:-moz-scrollbars-horizo​​ntal; overflow:-moz-scrollbars-vertical ;

这是一个Mozilla Firefox特有的黑客,所以其他浏览器都不受影响。

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

这篇关于如何让firefox显示一个自动水平scollbar一个div?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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