본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

change default image style

  • 2 답장
  • 8 이 문제를 만남
  • 1 보기
  • 최종 답변자: brennr_rose

more options

I used the add-on "Old Default Image Style" for years to display image files in Firefox so that they would not be automatically centred on a black background which is the default. After upgrading to Quantum, the add-on is no longer supported. Is there any way modify the default image display to turn off the default centering and black background?

This is my only issue with the upgrade so far.

Thanks!

I used the add-on "Old Default Image Style" for years to display image files in Firefox so that they would not be automatically centred on a black background which is the default. After upgrading to Quantum, the add-on is no longer supported. Is there any way modify the default image display to turn off the default centering and black background? This is my only issue with the upgrade so far. Thanks!

선택된 해결법

This is a bit tricky because the only way I know to override the dark background on stand-alone image pages is going to affect all pages. That said, most pages either specify a body background color or leave it white, so perhaps that's not a problem?

@media not print{
  /* De-center the image if it's the very first element in a page body */
  body > img {
    margin: 0 !important;
  }
  /* Create a global off-white background */
  html {
    background-color: #fafafa !important;
  }
}

That style rule would go into a userContent.css file. More info on that file: http://kb.mozillazine.org/UserContent.css

문맥에 따라 이 답변을 읽어주세요 👍 2

모든 댓글 (2)

more options

선택된 해결법

This is a bit tricky because the only way I know to override the dark background on stand-alone image pages is going to affect all pages. That said, most pages either specify a body background color or leave it white, so perhaps that's not a problem?

@media not print{
  /* De-center the image if it's the very first element in a page body */
  body > img {
    margin: 0 !important;
  }
  /* Create a global off-white background */
  html {
    background-color: #fafafa !important;
  }
}

That style rule would go into a userContent.css file. More info on that file: http://kb.mozillazine.org/UserContent.css

more options

That works very well! Thanks for your incredibly fast reply. I appreciate your help.