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

Mozilla 도움말 검색

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

자세히 살펴보기

Black table borders showing as grey

  • 3 답장
  • 2 이 문제를 만남
  • 6 보기
  • 최종 답변자: cor-el

more options

When coding explicit black borders within a table that contains white text the borders are appearing grey instead of black.

When coding explicit black borders within a table that contains white text the borders are appearing grey instead of black.

모든 댓글 (3)

more options

Hi,

Usually people don't respond to a question with another one :), but here I must say - Can you please attach a code snippet to demonstrate your issue? Code related problems can be interpreted much easier if having code along side.

Thanks!

more options

Thanks for your speedy reply. Sure thing. Here it is:

  1. Fore color must be white
  2. Border color must be black
  3. Background color must be #93BEE2
  4. Chrome: perfect - no issues
  5. IE: border color between 2 columns is grey not black
  6. FF: border colors are all grey not black

style="border-color:Black;border-width:1px;border-style:solid;font-family:Verdana;font-size:8pt;border-collapse:collapse;"> <tr style="color:White;background-color:#93BEE2;border-color:Black;border-width:1px;border-style:Solid;font-weight:normal;"> <th scope="col" style="width:140px;">col1</th> <th scope="col" style="width:140px;">col2</th> </tr>

Any assistance would be appreciated.

more options

There is a code example in the system details list.

You get the gray border colors because there is no DOCTYPE and Firefox is using quirk mode.

See:

  • resource://gre-resources/quirk.css
table, td, th, tr, thead, tbody, tfoot, colgroup, col {
  border-color: gray;
}

To get the borders of the TH elements in black you need to apply the CSS settings to the TH elements or otherwise they are inherited from the text color (white).
It is easier and less problems with maintaining if you use a stylesheet to apply the CSS rules instead of embedding the style rules in each element.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>