组合框选项中的缩放问题(mozilla firefox) [英] Scaling issue in combobox options (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屋!