如何禁用_moz_resizing? [英] How can I disable _moz_resizing?
问题描述
我使用nicEdit编辑器,我已经添加了自己的自定义图像调整大小脚本。但我想禁用在Firefox中显示的默认_moz_resizing。
I am using nicEdit editor and I have added my own custom image resizing script to it. But I want to disable the default _moz_resizing that appears in Firefox.
我想要更精细地控制正在调整大小的图片。 (例如:只允许图片调整大小并继承父容器的宽度。)
I wanted to have finer control over the image being resized. ( Eg: Allow only the image to resize and inherit the width of the parent container. )
所以我写了一个自定义脚本。但由于Firefox有自己的图像调整大小控制(_moz_resizing)如何禁用它?如果没有办法这样做,我有一个非常简单的解决方法,我检测是否Firefox和关闭我的自定义脚本,并使用_moz_resizing替代。
So I wrote a custom script. But since Firefox has its own image resizing control (_moz_resizing) how do I disable it? If there is no way to do so, I have a very simple workaround where I detect if Firefox and turn off my custom script and use the _moz_resizing instead.
但我赢了没有细粒度的控制,我将不得不依赖于Firefox浏览器错误。 :(
But I won't have fine-grained control and I will have to rely on there being browser bugs in Firefox. :(
推荐答案
您可以通过转到Firefox中的about:config禁用此功能 - 更改 browser.enable_automatic_image_resizing
为false。
You can disable this by going to about:config in Firefox - change browser.enable_automatic_image_resizing
to false.
这篇关于如何禁用_moz_resizing?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!