组合框选项中的缩放问题(mozilla firefox) [英] Scaling issue in combobox options (mozilla firefox )

查看:150
本文介绍了组合框选项中的缩放问题(mozilla firefox)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调整父div以适合客户浏览器区域.

i am adjusting a parent div to fit clients browser area.

->在Chrome中,我使用了zoom属性,可以正确缩放包括组合框在内的所有元素

-> in chrome i have used the zoom property which correctly scales all elements inside including combobox

->并且在mozilla中,它不会缩放组合框的选项",而是实际上隐藏了.

-> And in mozilla, it doesn't scale the 'options of the combobox', it actually lies away.

<div style="transform: scale(0.8);">
<select>
    <option>option 1</option>
    <option>option 2</option>
    <option>option 3</option>
</select>

小提琴

我在这里发现了相同的问题:此处,但这只谈论上市问题.

i found the same issue question here : Here but this only talks about listing issues.

推荐答案

绝对看起来像是firefox中的错误.我也面临着类似的问题.作为一个临时技巧,我用一个名为selectric的轻量级jQuery插件替换了我的选择框.参见- http://jsfiddle.net/19mkxd8g/5/

Definitely looks like a bug in firefox. I too was facing similar problem. As a temporary hack I replaced my select boxes with a light weight jQuery plugin called selectric. See - http://jsfiddle.net/19mkxd8g/5/

        $(function(){
            $('select').selectric();
        });

这篇关于组合框选项中的缩放问题(mozilla firefox)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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