Scaling issue in combobox options (mozilla firefox )

我与影子孤独终老i 提交于 2019-12-12 23:21:08

问题


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

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

-> 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>

Fiddle

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


回答1:


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();
        });


来源:https://stackoverflow.com/questions/25599806/scaling-issue-in-combobox-options-mozilla-firefox

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!