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

Mozilla 도움말 검색

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

자세히 살펴보기

white "borders" on left and top

more options

As the image shows, this webpage has a white "border" on the left and top of the content area. The page was generated by Excel. I was working on it when the "mouse" grabbed it and dragged it. After that the white borders were there and nothing I do gets rid of it. There is another Excel generated webpage that now also shows the same. These are the only pages it happens with, and neither did it before the content of the one got dragged. What can I do to correct this?

As the image shows, this webpage has a white "border" on the left and top of the content area. The page was generated by Excel. I was working on it when the "mouse" grabbed it and dragged it. After that the white borders were there and nothing I do gets rid of it. There is another Excel generated webpage that now also shows the same. These are the only pages it happens with, and neither did it before the content of the one got dragged. What can I do to correct this?
첨부된 스크린샷

모든 댓글 (4)

more options

Browsers traditionally have a margin of 8-10 pixels around the whole page. It is common for sites to use a style rule to reduce that to zero, but if the page doesn't have a rule for that, you'll get the margin. I don't know why that would have changed suddenly; seems it should be coded into your files.

If you need to re-establish that rule, you can place this in a relevant location:

In an external ________.css file used in the page:

  body, html {
    margin: 0;
  }

In your main page, if you don't use an external style sheet, just before </head>:

  <style type="text/css">
  body, html {
    margin: 0;
  }
  </style>
more options

You can of course also make the background of the body black or the color you use on your web page.

<style type="text/css">
 body, html {
  background: black;
 }
</style>
more options

The background is black. The white you see is not part of the page itself. I have been doing some experimenting and I think the issue lies with the CSS generated by Excel. I took a copy of the page and stripped out all of the CSS and the page doesn't have that issue with a normal <body bgcolor="black" attribute.

more options

Wayne said

... a normal <body bgcolor="black" attribute.

For broadest compatibility, it is recommended to use style rules for colors rather than rely only on old style attributes such as bgcolor.

body {
  background-color: black;
}