今日は、さまざまなブラウザでのデフォルト要素のマージン値が何であるかという問題について説明しました。 コードをコピー コードは次のとおりです。// 本体のマージン値 Firefox 20.0 ----------------------- body の余白は次のとおりです: margin:8px 8px 8px 8px; Internet Explorer 6.0 ----------- 本文の余白は次のとおりです: margin:15px 10px 15px 10px; Internet Explorer 7.0 ----------- 本文の余白は次のとおりです: margin:16px 11px 16px 11px; Internet Explorer 8.0-10.0 ---- 本文の余白は次のとおりです: margin:16px 8px 16px 8px; Opera 12.11 --------------------- 本文の余白は次のとおりです: margin:16px 8px 16px 8px; Safari 5.1 ------------------------- 本文の余白は次のとおりです: margin:16px 8px 16px 8px; Google Chrome 27.0 --------- body の余白は次のとおりです: margin:16px 8px 16px 8px; // h1 のマージン値 Firefox 20.0 ----------------------- h1 の余白は次のとおりです: margin:21px 0 22px 0; Internet Explorer 6.0 ----------- h1 の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 7.0 ----------- h1 の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 8.0-10.0 ---- h1 のマージンは次のとおりです: margin:20px 0 20px 0; Opera 12.11 --------------------- h1 の余白は次のとおりです: margin:21px 0 21px 0; Safari 5.1 ------------------------- h1 の余白は次のとおりです: margin:21px 0 21px 0; Google Chrome 27.0 --------- h1 のマージンは次のとおりです: margin:21px 0 22px 0; // h2 のマージン値 Firefox 20.0 ----------------------- h2 の余白は次のとおりです: margin:20px 0 20px 0; Internet Explorer 6.0 ----------- h2 の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 7.0 ----------- h2 の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 8.0-10.0 ---- h2 のマージンは次のとおりです: margin:20px 0 20px 0; Opera 12.11 --------------------- h2 の余白は次のとおりです: margin:19px 0 19px 0; Safari 5.1 ------------------------- h2 の余白は次のとおりです: margin:19px 0 19px 0; Google Chrome 27.0 --------- h2 のマージンは次のとおりです: margin:20px 0 20px 0; // h3 のマージン値 Firefox 20.0 ----------------------- h3 の余白は次のとおりです: margin:19px 0 18px 0; Internet Explorer 6.0 ----------- h3 の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 7.0 ----------- h3 の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 8.0-10.0 ---- h3 のマージンは次のとおりです: margin:19px 0 18px 0; Opera 12.11 --------------------- h3 の余白は次のとおりです: margin:18px 0 18px 0; Safari 5.1 ------------------------- h3 の余白は次のとおりです: margin:18px 0 18px ; Google Chrome 27.0 --------- h3 のマージンは次のとおりです: margin:19px 0 18px 0; // h4 のマージン値 Firefox 20.0 ----------------------- h4 の余白は次のとおりです: margin:22px 0 21px 0; Internet Explorer 6.0 ----------- h4 の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 7.0 ----------- h4 の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 8.0-10.0 ---- h4 のマージンは次のとおりです: margin:22px 0 21px 0; Opera 12.11 --------------------- h4 の余白は次のとおりです: margin:16px 0 16px 0; Safari 5.1 ------------------------- h4 の余白は次のとおりです: margin:21px 0 21px 0; Google Chrome 27.0 --------- h4 のマージンは次のとおりです: margin:22px 0 21px 0; // h5 のマージン値 Firefox 20.0 ----------------------- h5 の余白は次のとおりです: margin:22px 0 22px 0; Internet Explorer 6.0 ----------- h5 の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 7.0 ----------- h5 の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 8.0-10.0 ---- h5 マージンは次のとおりです: margin:22px 0 22px 0; Opera 12.11 --------------------- h5 の余白は次のとおりです: margin:22px 0 22px 0; Safari 5.1 ------------------------- h5 のマージンは次のとおりです: margin:22px 0 22px 0; Google Chrome 27.0 --------- h5 のマージンは次のとおりです: margin:22px 0 22px 0; // h6 のマージン値 Firefox 20.0 ----------------------- h6 のマージンは次のとおりです: margin:25px 0 25px 0; Internet Explorer 6.0 ----------- h6 の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 7.0 ----------- h6 の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 8.0-10.0 ---- h6 マージンは次のとおりです: margin:25px 0 25px 0; Opera 12.11 --------------------- h6 の余白は次のとおりです: margin:24px 0 24px 0; Safari 5.1 ------------------------- h6 の余白は次のとおりです: margin:24px 0 24px 0; Google Chrome 27.0 --------- h6 の余白は次のとおりです: margin:28px 0 28px 0; // dl のマージン値 Firefox 20.0 ----------------------- dl のマージンは次のとおりです: margin:16px 0 16px 0; Internet Explorer 6.0 ----------- dl のマージンは次のとおりです: margin:19px 0 19px 0; Internet Explorer 7.0 ----------- dl のマージンは次のとおりです: margin:19px 0 19px 0; Internet Explorer 8.0-10.0 ---- dl のマージンは次のとおりです: margin:16px 0 16px 0; Opera 12.11 --------------------- dl のマージンは次のとおりです: margin:16px 0 16px 0; Safari 5.1 ------------------------- dl のマージンは次のとおりです: margin:16px 0 16px 0; Google Chrome 27.0 --------- dl のマージンは次のとおりです: margin:16px 0 16px 0; // dd のマージン値 firefox 20.0 ----------------------- dd の余白は次のとおりです: margin:0 0 0 40px; Internet Explorer 6.0 ----------- dd のマージンは次のとおりです: margin:0 0 0 40px; Internet Explorer 7.0 ----------- dd のマージンは次のとおりです: margin:0 0 0 40px; Internet Explorer 8.0-10.0 ---- dd のマージンは次のとおりです: margin:0 0 0 40px; Opera 12.11 --------------------- dd のマージンは次のとおりです: margin:0 0 0 40px; Safari 5.1 ------------------------- dd のマージンは次のとおりです: margin:0 0 0 40px; Google Chrome 27.0 --------- dd のマージンは次のとおりです: margin:0 0 0 40px; // ulのマージン値 firefox 20.0 ----------------------- ul のマージンは次のとおりです: margin:16px 0 16px 0; Internet Explorer 6.0 ----------- ul のマージンは次のとおりです: margin:19px 0 19px 40px; Internet Explorer 7.0 ----------- ul のマージンは次のとおりです: margin:19px 0 19px 40px; Internet Explorer 8.0-10.0 ---- ul のマージンは次のとおりです: margin:16px 0 16px 0; Opera 12.11 --------------------- ul のマージンは次のとおりです: margin:16px 0 16px 0; Safari 5.1 ------------------------- ul のマージンは次のとおりです: margin:16px 0 16px 0; Google Chrome 27.0 --------- ul のマージンは次のとおりです: margin:16px 0 16px 0; //olのマージン値 Firefox 20.0 ----------------------- ol の余白は次のとおりです: margin:16px 0 16px 0; Internet Explorer 6.0 ----------- ol のマージンは次のとおりです: margin:19px 0 19px 40px; Internet Explorer 7.0 ----------- ol のマージンは次のとおりです: margin:19px 0 19px 40px; Internet Explorer 8.0-10.0 ---- ol のマージンは次のとおりです: margin:16px 0 16px 0; Opera 12.11 --------------------- ol のマージンは次のとおりです: margin:16px 0 16px 0; Safari 5.1 ------------------------- ol のマージンは次のとおりです: margin:16px 0 16px 0; Google Chrome 27.0 --------- ol のマージンは次のとおりです: margin:16px 0 16px 0; // ulのパディング値 firefox 20.0 ----------------------- ul のパディングは次のとおりです: padding:0 0 0 40px; Internet Explorer 6.0 ----------- ul の padding は次のとおりです: padding:0 0 0 0; Internet Explorer 7.0 ----------- ul の padding は次のとおりです: padding:0 0 0 0; Internet Explorer 8.0-10.0 ---- ul のパディングは次のとおりです: padding:0 0 0 40px; Opera 12.11 --------------------- ul のパディングは次のとおりです: padding:0 0 0 40px; Safari 5.1 ------------------------- ul の padding は次のとおりです: padding:0 0 0 40px; Google Chrome 27.0 --------- ul のパディングは次のとおりです: padding:0 0 0 40px; // ol のパディング値 Firefox 20.0 ----------------------- ol の padding は次のとおりです: padding:0 0 0 40px; Internet Explorer 6.0 ----------- ol の padding は次のとおりです: padding:0 0 0 0; Internet Explorer 7.0 ----------- ol の padding は次のとおりです: padding:0 0 0 0; Internet Explorer 8.0-10.0 ---- ol のパディングは次のとおりです: padding:0 0 0 40px; Opera 12.11 --------------------- ol のパディングは次のとおりです: padding:0 0 0 40px; Safari 5.1 ------------------------- ol のパディングは次のとおりです: padding:0 0 0 40px; Google Chrome 27.0 --------- ol のパディングは次のとおりです: padding:0 0 0 40px; // p のマージン値 Firefox 20.0 ----------------------- p の余白は次のとおりです: margin:16px 0 16px 0; Internet Explorer 6.0 ----------- p の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 7.0 ----------- p の余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 8.0-10.0 ---- p の余白は次のとおりです: margin:16px 0 16px 0; Opera 12.11 --------------------- p の余白は次のとおりです: margin:16px 0 16px 0; Safari 5.1 ------------------------- p の余白は次のとおりです: margin:16px 0 16px 0; Google Chrome 27.0 --------- p の余白は次のとおりです: margin:16px 0 16px 0; //thead、tbody、tfootのマージン値 firefox 20.0 ----------------------- thead、tbody、tfoot の余白は次のとおりです: margin:2px 2px 2px 2px; Internet Explorer 6.0 ----------- thead、tbody、tfoot の余白は次のとおりです: margin: 2px 2px 2px 2px; Internet Explorer 7.0 ----------- thead、tbody、tfoot の余白は次のとおりです: margin: 2px 2px 2px 2px; Internet Explorer 8.0-10.0 ---- thead、tbody、tfoot の余白は次のとおりです: margin: 2px 2px 2px 2px; Opera 12.11 --------------------- thead、tbody、tfoot の余白は次のとおりです: margin:2px 2px 2px 2px; Safari 5.1 ------------------------- thead、tbody、tfoot の余白は次のとおりです: margin: 2px 2px 2px 2px; Google Chrome 27.0 --------- thead、tbody、tfoot の余白は次のとおりです: margin: 2px 2px 2px 2px; // フォームの余白値 firefox 20.0 ----------------------- フォームの余白は次のとおりです: margin:0 0 0 0; Internet Explorer 6.0 ----------- フォームの余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 7.0 ----------- フォームの余白は次のとおりです: margin:19px 0 19px 0; Internet Explorer 8.0-10.0 ---- フォームの余白は次のとおりです: margin:0 0 0 0; Opera 12.11 --------------------- フォームの余白は次のとおりです: margin:0 0 0 0; Safari 5.1 ------------------------- フォームの余白は次のとおりです: margin:0 0 0 0; Google Chrome 27.0 --------- フォームの余白は: margin:0 0 0 0; |
>>: HTMLとXHTML、HTML4とHTML5のタグの違いについて簡単に紹介します。
最近、あるプロジェクトに取り組んでいたとき、ページに透かし効果を追加するように依頼されました。さっそ...
Angular Cookie の読み取りおよび書き込み操作のコードは次のようになります。 var a...
目次1. マスタースレーブ同期原理マスタースレーブ同期アーキテクチャ図(非同期同期)マスタースレーブ...
目次1. はじめに2. Windows用Dockerをインストールする1. Windows用Dock...
目次1. 操作要素1.1. 要素コンテンツの変更1.2. innerText と innerHtml...
MySQL の導入現在、会社ではプラットフォーム運用を通じてMySQLを導入しています。金曜日、プラ...
エクスポートデフォルト({ URL、 メソッド = 'GET'、 データ = nu...
この記事では、例を使用して、MySQL ビューの一貫性を確保する方法 (チェック オプションを使用)...
a : ハイパーリンクの開始位置または宛先位置を示します。頭字語: 単語の最初の文字からなる略語を示...
1. Docker Swarm とは何ですか? Docker Swarm は、Docker が公式に...
目次1. はじめに1.1 原則1.2 プロセス1.3 特徴1.4 githubアドレス2. テスト環...
長い間、リソースの制約により、使用できるフォントが限られていたため、Web サイトの開発は妨げられて...
この記事では、花火効果を実現するためのJavaScriptの具体的なコードを参考までに紹介します。具...
ここでは、あまり使われていない、または誤解されている 10 個の HTML タグを紹介します。あまり...
目次概要1. グローバル登録2. 現地登録3. モジュールシステムへのローカル登録概要コンポーネント...