Do not know the interpretation of border of FireFox
Categories: General PC trouble
2010-08-24 Last update:
2008-11-17: Sun Posts
You do not know because I write a small one time was plagued by meaning &.
Working on a website, I think a line to the edge of the browser FLYING, we set the border in the style sheet. I can see it well with IE, you free it is a gap and Firefox · · ·.
HTML following that. (In the style of the body element margin: set the:;; 0px 0px padding)
You have specified a margin 10px put a div element in a div.
<div style="margin: 0px auto; padding: 0px; border-left: 1px solid black; border-right: 1px solid black; width: 250px;"> <div style="margin: 10px;">テスト</div> </div>
表示結果が下の通り。
Firefoxだと10px分の隙間が出来てしまいます。
これがそういう仕様であれば仕方ないのですが、スタイルシートに「border」の一括指定、もしくは「border-top」を追加すると今度は下のようにちゃんと上まで線が引かれます。
<div style="margin: 0px auto; padding: 0px; border: 1px solid black; width: 250px;"> <div style="margin: 10px;">テスト</div> </div>
一体これはどういう解釈なのかしら?という疑問です。
[2009-09-17 追記]
どうやらこれはFireFoxではなくIEの方がバグらしいです。( コメントを頂きました )
しかし、どちらかというと私的にはIEの解釈の方がすんなり受け入れる事が出来るのですが…(^-^;
- タグ
- firefox border 違い
- トラックバックURL































2008/11/17 月曜日 14:46:57
はじめてコメントいたします。
私もFirefoxでグーグルにログインできない?に悩まされたので
何か妙案をと思いブログを探していたところ、
こちらにたどりつきました。
私もウェブ製作中IEとFirefoxのCSSに苦しんでおりますゆえこのようなバグ(?)情報があると助かります。
ありがとうございました。
2008/11/17 月曜日 15:55:33
>ayahanaさん
コメントありがとうございます。
「そういう事がありました」と問題を提起しているだけで何ら解決策を示しているわけではないのですが、そんな事もあるんだと心に留めておいていただいたら幸いです。
ただ、出来るだけシンプルに再現したつもりですが、私の書き方が悪い可能性もありますのでその際はご容赦ください。