Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

Resizing image to a specific size

  • 2 ответа
  • 1 имеет эту проблему
  • 8 просмотров
  • Последний ответ от cor-el

more options

How can I force an image to be a specific size? I need to squeeze or stretch a few images without retaining the height-to-width proportion.

I find plenty of mention of Firefox's retaining of image proportions, but not how to override those ratios.

I've tried specific width and height settings in HTML and CSS, including min-width and min-height. Tricks with background only succeeded in cropping rather than stretching or squeezing (I have stretched background images, but these images need to be scattered around the page in tables or divs, not as the screen background).

I also tried setting browser.enable_automatic_image_resizing to false but nothing changed.

How can I force an image to be a specific size? I need to squeeze or stretch a few images without retaining the height-to-width proportion. I find plenty of mention of Firefox's retaining of image proportions, but not how to override those ratios. I've tried specific width and height settings in HTML and CSS, including min-width and min-height. Tricks with background only succeeded in cropping rather than stretching or squeezing (I have stretched background images, but these images need to be scattered around the page in tables or divs, not as the screen background). I also tried setting '''browser.enable_automatic_image_resizing''' to false but nothing changed.

Все ответы (2)

more options

This is similar to a year-old question, as several people say that disabling browser.enable_automatic_image_resizing has no effect. Question 693382

EDIT: I see that this option is "When viewing an image not in a web page", so it is not relevant to images being fitted into web page blocks.

Изменено FirCover

more options