検索

HTML 入門チュートリアル

Jun 26, 2017 pm 03:17 PM
htmlはじめる

1. HTML の概要

HTML (Hypertext Markup Language) は、Web ページのドキュメントを記述するために使用されるマークアップ言語です。

HTML タグは、HTML タグと呼ばれることがよくあります。 HTML には、段落タグ、タイトル タグ、ハイパーリンク タグ、ピクチャ タグなど、多くのタグが用意されています。Web ページ内にどのようなコンテンツを定義する必要があるかは、対応する HTML タグで記述することができます。

2. HTML 構造

 1 nbsp;html><!-- 表示HTML5文档协议声明标签,协议的不同会影响整个页面的显示效果 --> 2 <!-- <html>表示文档标签 --> 3 <!-- <head>标签表示文档的头部标签,在<head>标签中的信息是用于给浏览器识别的内容,如这里的<meta charset="UTF-8">用于告知浏览器该文档的编码为UTF-8 --> 4     <meta> 5     <!-- 这是注释,不会显示在网页上,注释的内容写在符号之间 --> 6     <title>第一个HTML文件</title><!-- <title>表示该文档的标题 --> 7  8  9 <!-- <body>标签为我们在浏览器中看到的内容 -->10     第一个HTML文件11  12 

コメントの内容は 記号の間に記述され、ブラウザーでの実行効果は次のとおりです

3 、HTML ヘッド タグ

3.1、 タグ

タグは、現在の HTML または XHTML の標準仕様をブラウザに示すために使用されます。文書の用途。主にブラウザがドキュメントタグを解析するための基礎として使用されます。

タグはブラウザの互換性に関係します。 を削除すると、ブラウザに HTML ページのコンテンツが表示されるようになります。現時点では、ページには IE6、IE7、IE8、Firefox2、Firefox3、Chrome と同じ数の表示効果が適用される可能性がありますが、これは許可されていません。

3.2、 タグ

タグは、ルート タグとも呼ばれ、ブラウザに HTML ドキュメントであることを通知するために使用されます。 タグ HTML ドキュメントの始まりを示し、 タグの間にはドキュメントの先頭と本文のコンテンツがあります。すべてのタグは、2 つの終了タグ と の間に記述する必要があります。 lang 属性を使用して現在のドキュメントのメイン言語を設定すると、検索エンジンがドキュメントを解析しやすくなります。 は、現在のドキュメントの言語が中国語であることを意味します。 。


3.3、

タグ
タグは、 タグの直後に、head タグとも呼ばれる HTML ドキュメントのヘッダー情報を定義するために使用されます。

head タグで定義されたコンテンツはブラウザにのみ提供され、ユーザーのプレゼンテーションには使用されません。

主に、タイトル、作成者、およびドキュメントとの関係を記述するために使用される、、<meta>、<link>、<style> など、ドキュメントの先頭にある他のタグをカプセル化するために使用されます。その他書類の書類等。 <p> HTML ドキュメントには 2 つの <head> タグのみを含めることができます。<span style="font-size: 16px; color: #ff00ff;"> ほとんどのドキュメントのヘッダーに含まれるデータは、実際にはページにコンテンツとして表示されません。 <span style="color: #ff00ff; font-size: 16px;">3.4、<meta> タグ <br/><br/><meta> タグは、検索エンジンの説明やキーワード、更新頻度などのメタ情報を提供できます。 <h4><meta> タグはドキュメントの先頭にあり、コンテンツは含まれません。 <meta> タグのプロパティは、ドキュメントに関連付けられた名前と値のペアを定義します。例: <p><pre class="brush:php;toolbar:false"><meta name="keywords" content="HTML,ASP,PHP,SQL"><p> 「キーワード」はよく使用される名前です。ドキュメントの一連のキーワードを定義します。一部の検索エンジンは、ドキュメントに遭遇したときにこれらのキーワードを使用してドキュメントを分類します。 <div class="cnblogs_code">3.5、<title> タグ <p><br/><title> タグは HTML ページのタイトルを定義するために使用され、Web ページに名前を付けます。<head> 内に配置する必要があります。 ; 鬼ごっこ。 HTML ドキュメントには、<title></style> </title> タグ間のコンテンツがブラウザ ウィンドウのタイトル バーに表示されます。その基本的な文法形式は次のとおりです: <br><pre class="brush:php;toolbar:false"><title>网页标题名称</title></pre> <h4></h4> <p> title タグは Web サイトの SEO にとって非常に重要であり、タイトルの品質は Web サイトの SEO に直接影響します。 </p> <div class="cnblogs_code"></div> <p><span style="font-size: 16px; color: #ff00ff;">3.6、<link>タグ</span><br><link>は、外部CSSファイルをリンクするために最も一般的に使用されます<br></p> <pre class="brush:php;toolbar:false"><link></pre> <h4></h4>さらに、Webサイトのアイコンを導入するためにも使用できます<p></p> <pre class="brush:php;toolbar:false"><link></pre> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/7521b8227cc686766ee6725e3c937478-1.png?x-oss-process=image/resize,p_40" class="lazy" alt=""></p> 4. HTML コンテンツ タグ <p></p> 4.1. タイトル タグ <h3></h3> タイトル タグは <h1> で表され、<h1> は最大のタイトルを定義します。 <h6 id="は-現在のドキュメントに比べて重要度が低くなるように-h-から-h-までの最小の見出しを定義します-h-タグはページ全体で多くても-回のみ使用することをお勧めします-もちろん-もっと多くても構いませんが-検索-SEO-には役に立ちません-h-タイトル-タグはドキュメントの内容の重要性を伝えるために使用されます-h-太字または大きなテキストを作成するためだけにタイトルを使用しないでください"> は、現在のドキュメントに比べて重要度が低くなるように、<h1> から <h6> までの最小の見出しを定義します。 h1 タグはページ全体で多くても 1 回のみ使用することをお勧めします (もちろん、もっと多くても構いませんが、検索 SEO には役に立ちません)。 <h4>タイトル タグはドキュメントの内容の重要性を伝えるために使用されます</h4>。太字または大きなテキストを作成するためだけにタイトルを使用しないでください。 </h6> </h1> </h6> </h1> </h1> <p><span style="font-size: 16px; color: #ff00ff;"></span> </p> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/b2d0086c776e4dd4c081b8c3c9c17772-2.png?x-oss-process=image/resize,p_40" class="lazy" alt=""><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/b2d0086c776e4dd4c081b8c3c9c17772-3.png?x-oss-process=image/resize,p_40" class="lazy" alt="">注: ブラウザはタイトルの前後に空白行を自動的に追加します。 </p> <p><span style="color: #ff00ff; font-size: 16px;">4.2. 段落タグ</span></p> 段落は <p> タグによって定義されますが、1 行以上のスペースを占有します。 </p> <h4></h4> <p> </p> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/b2d0086c776e4dd4c081b8c3c9c17772-4.png?x-oss-process=image/resize,p_40" class="lazy" alt="">4.3. 横線マーク<img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/93b5d2ff7156018c4882a3ecff1ab0b2-5.png?x-oss-process=image/resize,p_40" class="lazy" alt=""></p>hrタグは、ページ内に横線を挿入することを意味します<h4 id="hrタグは単一のタグ">hrタグは単一のタグ</h4>であり、閉じる必要はありません。 <p><span style="max-width:90%"></span> </p> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/93b5d2ff7156018c4882a3ecff1ab0b2-6.png?x-oss-process=image/resize,p_40" class="lazy" alt="">4.4. 改行タグ<img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/93b5d2ff7156018c4882a3ecff1ab0b2-7.png?x-oss-process=image/resize,p_40" class="lazy" alt=""></p> <br> は<h4 id="単一タグ">単一タグ</h4>でもあり、終了タグは必要ありません。 <p><span style="font-size: 16px; color: #ff00ff;"></span> </p> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/93b5d2ff7156018c4882a3ecff1ab0b2-8.png?x-oss-process=image/resize,p_40" class="lazy" alt="">4.5.spanタグ<img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/1051e1f8cf622765bc11a607dd5e2551-9.png?x-oss-process=image/resize,p_40" class="lazy" alt=""></p> <span>タグは、ドキュメント内のインライン要素を結合するために使用されます。通常、span タグにはスタイルを設定する必要があります。スタイルを設定しないと、ページ上の他のテキストと区別できなくなります。 <h4></h4> <p> </p> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/1051e1f8cf622765bc11a607dd5e2551-10.png?x-oss-process=image/resize,p_40" class="lazy" alt="">4.6、divタグ<img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/1051e1f8cf622765bc11a607dd5e2551-11.png?x-oss-process=image/resize,p_40" class="lazy" alt=""></p> <div>要素を使用して、スタイルを使用して書式設定できるようにブロックレベルの要素を結合します。 <h4></h4> <p>4.7、imgタグ</p> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/e57ab189241f6c0bed74aca321e3aca3-12.png?x-oss-process=image/resize,p_40" class="lazy" alt="HTML 入門チュートリアル" > 技術的に言えば、<img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/e57ab189241f6c0bed74aca321e3aca3-12.png?x-oss-process=image/resize,p_40" class="lazy" alt=""><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/e57ab189241f6c0bed74aca321e3aca3-13.png?x-oss-process=image/resize,p_40" class="lazy" alt="HTML 入門チュートリアル" > タグは画像をWebページに埋め込みます。ウェブページのリンク画像。 <img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/e57ab189241f6c0bed74aca321e3aca3-13.png?x-oss-process=image/resize,p_40" class="lazy" alt=""><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/e57ab189241f6c0bed74aca321e3aca3-14.png?x-oss-process=image/resize,p_40" class="lazy" alt="HTML 入門チュートリアル" > タグは、参照された画像のプレースホルダー スペースを作成します。 </p> <h4> <img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/e57ab189241f6c0bed74aca321e3aca3-14.png?x-oss-process=image/resize,p_40" class="lazy" alt="HTML 入門チュートリアル" > タグには、src 属性と alt 属性という 2 つの必須属性があります。 </h4> <p><span style="font-size: 16px; color: #ff00ff;"> </span></p> <p>5、HTMLアドバンスタグ</p> <p>5.1、リストタグ<img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/e57ab189241f6c0bed74aca321e3aca3-14.png?x-oss-process=image/resize,p_40" class="lazy" alt=""><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/8c3ae83c5f1506f33dad53805cf414a0-15.gif?x-oss-process=image/resize,p_40" class="lazy" alt="">5.1.1、順序なしリスト</p> <h3 id="順序なしリストはulタグで表現され-リスト項目はliタグで表現され">順序なしリストはulタグで表現され、リスト項目はliタグで表現され、</h3>順序なしリストがありますさまざまなリスト項目間に順序レベルはなく、並列です <h4></h4> <h5></h5> <p> <span style="font-size: 16px; color: #ff00ff;"><span style="color: #ff00ff; font-size: 16px;"></span>5.1.2. 順序付きリスト</span></p>順序付きリストは ol タグで表され、リスト項目も li タグで表されます。各リスト項目が特定の順序で定義されていること<p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/8c3ae83c5f1506f33dad53805cf414a0-16.png?x-oss-process=image/resize,p_40" class="lazy" alt=""><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/7f6e465cd7303cd559a16db04ea3d3e0-17.png?x-oss-process=image/resize,p_40" class="lazy" alt=""></p> 5.1.3. カスタマイズされたリスト<h5></h5> カスタマイズされたリストは、用語や名詞を説明するためによく使用されます。 定義リストの前にリスト項目はありません。 <p></p> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/8d4bb3e16f60a4bd67fb17c618e5bf5f-20.png?x-oss-process=image/resize,p_40" class="lazy" alt=""> <img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/8d4bb3e16f60a4bd67fb17c618e5bf5f-21.png?x-oss-process=image/resize,p_40" class="lazy" alt=""></p> <h4 id="テーブルタグ">5.2. テーブルタグ</h4> <p> 単純な HTML テーブルは、table 要素と 1 つ以上の tr、th または td 要素で構成されます。tr 要素はテーブルの行を定義し、th 要素はテーブルのヘッダーを定義します。要素はテーブル単位を定義します。簡単な例は次のとおりです。</p> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/8d4bb3e16f60a4bd67fb17c618e5bf5f-22.png?x-oss-process=image/resize,p_40" class="lazy" alt=""> <img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/103ea6f3942105647a54088462301bc1-23.png?x-oss-process=image/resize,p_40" class="lazy" alt=""></p> <h4 id="フォームラベル">5.3、フォームラベル</h4> <h5 id="フォームラベル">5.3.1、フォームラベル</h5> <p>フォーム全体のコンテンツをラップするために使用されるフォームのフィールドラベル。フォームは、ユーザーがデータをバックエンドに送信するための仮想リストであり、通常、フォームはテキスト ボックス、ドロップダウン リスト、ラジオ選択、複数選択、テキスト フィールドなどで構成されます。Action 属性は、指定されるアドレスを指定するために使用されます。現在のフォームが送信されるときにバックエンドに送信されます。 <br><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/103ea6f3942105647a54088462301bc1-24.png?x-oss-process=image/resize,p_40" class="lazy" alt=""> <img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/103ea6f3942105647a54088462301bc1-25.gif?x-oss-process=image/resize,p_40" class="lazy" alt=""> </p> <h5 id="Inputタグ">5.3.2、Inputタグ</h5> <p>Inputタグはテキストボックス、ラジオ選択、複数選択、ボタンなどです。 <span style="font-size: 16px; color: #ff00ff;">Type 属性のさまざまな値によって、入力タグの役割が決まります。 </span></p> <p>テキストボックス:テキスト<br>パスワードボックス:パスワード<br>ラジオ選択:ラジオ<br>複数選択:チェックボックス<br>ボタン:ボタン<br>送信ボタン:submit<br>リセットボタン:reset<br><br></p> <p>Inputタグのchecked属性、属性値はのみです。checked 属性値は省略できます。ラジオ ボタンおよび複数選択ボタンでボタンが選択されていることを意味します。 </p> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/556c2f5f17f10703365154b3eba3b38d-26.png?x-oss-process=image/resize,p_40" class="lazy" alt=""> <img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/556c2f5f17f10703365154b3eba3b38d-27.png?x-oss-process=image/resize,p_40" class="lazy" alt=""></p> <p> 5.3.3. Select タグ </p> <h5> select 要素は、単一選択または複数選択のメニューを作成できます。<select> 要素内の <option> タグは、リスト内の利用可能なオプション。 </option></select> </h5> <p></p> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/b87b341e55fcc435a4a6aa7390b38c21-28.png?x-oss-process=image/resize,p_40" class="lazy" alt=""><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/b87b341e55fcc435a4a6aa7390b38c21-29.gif?x-oss-process=image/resize,p_40" class="lazy" alt="">Multipe: これも単一の属性です。複数の値は 1 つだけです。この属性を設定すると、select タグが list タグとして動作することになります。それ以外の場合は、ドロップダウン リストのラベルを表します。 </p> <p> </p> <p>5.3.4. テキストエリアラベル </p> <h5 id="Textarea-テキストエリアラベル-大量のテキストを入力するために使用されるラベル-テキスト-フィールド-ラベルの列は-何列の文字を収容できるかを示します-Rows-が保持するデータの行数">Textarea テキストエリアラベル、大量のテキストを入力するために使用されるラベル。テキスト フィールド ラベルの列は、何列の文字を収容できるかを示します。 Rows が保持するデータの行数。 </h5> <p></p> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/b87b341e55fcc435a4a6aa7390b38c21-30.png?x-oss-process=image/resize,p_40" class="lazy" alt=""><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/80ea271348d878577289dc6c3deec3a3-31.png?x-oss-process=image/resize,p_40" class="lazy" alt=""> </p> <p>5.3.5、ラベル label </p> <h5 id="ラベル-label-を使用すると-ラベル-テキストがクリックされたときに-ラベルが指すラベル-フォーム-ラベルにフォーカスを取得できます">ラベル label を使用すると、ラベル テキストがクリックされたときに、ラベルが指すラベル フォーム ラベルにフォーカスを取得できます。 </h5> <p> 2 つの方法: 1. for 属性を使用してフォーム ラベルをポイントします。 2. label label を使用してフォーム ラベルをラップします。 </p> <p></p> <p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/80ea271348d878577289dc6c3deec3a3-32.png?x-oss-process=image/resize,p_40" class="lazy" alt=""><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/001/80ea271348d878577289dc6c3deec3a3-33.gif?x-oss-process=image/resize,p_40" class="lazy" alt=""></p> </div></span><p>以上がHTML 入門チュートリアルの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。</p></div><div class="wzconShengming_sp"><div class="bzsmdiv_sp">声明</div><div>この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。</div></div></div><div class="phpgenera_Details_mainL4"><div class="phpmain1_2_top"><a href="javascript:void(0);" class="phpmain1_2_top_title">関連記事<img class="lazy" data-src="/static/imghwm/index2_title2.png" src="/static/imghw/default1.png" alt="" /></a></div><div class="phpgenera_Details_mainL4_info"><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796802246.html" title="HTMLタグの目的は何ですか?" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174576972169873.jpg?x-oss-process=image/resize,p_40" alt="HTMLタグの目的は何ですか?" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/ja/faq/1796802246.html" title="HTMLタグの目的は何ですか?" class="phphistorical_Version2_mids_title">HTMLタグの目的は何ですか?</a><span class="Articlelist_txts_time">Apr 28, 2025 am 12:02 AM</span><p class="Articlelist_txts_p">htmltagsareSterentionforturturingwebpages、EnhinceAccessibility、seo、andporformance.1)theyclosedinagure bracketetsandinginging inpairstocreateahierarchStructure.2)semanticagslikeandimproveuserexperienceandseo.3)</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796801937.html" title="自己閉鎖タグとは何ですか?例を挙げてください。" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174568348286513.jpg?x-oss-process=image/resize,p_40" alt="自己閉鎖タグとは何ですか?例を挙げてください。" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/ja/faq/1796801937.html" title="自己閉鎖タグとは何ですか?例を挙げてください。" class="phphistorical_Version2_mids_title">自己閉鎖タグとは何ですか?例を挙げてください。</a><span class="Articlelist_txts_time">Apr 27, 2025 am 12:04 AM</span><p class="Articlelist_txts_p">セルフクロージングのlandxmlareTagstatemtatemsem onedinedingsingaseparateclosingtag、SimmarifiedMarkupStructureanddendingCodingInefciency.1)areEssentionalinforementswithoutcontent、2)</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796801649.html" title="HTMLを超えて:Web開発のための重要なテクノロジー" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174559705219982.jpg?x-oss-process=image/resize,p_40" alt="HTMLを超えて:Web開発のための重要なテクノロジー" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/ja/faq/1796801649.html" title="HTMLを超えて:Web開発のための重要なテクノロジー" class="phphistorical_Version2_mids_title">HTMLを超えて:Web開発のための重要なテクノロジー</a><span class="Articlelist_txts_time">Apr 26, 2025 am 12:04 AM</span><p class="Articlelist_txts_p">強力な機能と優れたユーザーエクスペリエンスを備えたWebサイトを構築するには、HTMLだけでは十分ではありません。次のテクノロジーも必要です。JavaScriptは、Webページに動的とインタラクティブ性を与え、リアルタイムの変更がDOMを操作することで達成されます。 CSSは、美学とユーザーエクスペリエンスを向上させるために、Webページのスタイルとレイアウトを担当しています。 React、Vue.JS、Angularなどの最新のフレームワークとライブラリは、開発効率とコード組織構造を改善します。</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796801293.html" title="HTMLのブール属性とは何ですか?いくつかの例を挙げてください。" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174551046248816.jpg?x-oss-process=image/resize,p_40" alt="HTMLのブール属性とは何ですか?いくつかの例を挙げてください。" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/ja/faq/1796801293.html" title="HTMLのブール属性とは何ですか?いくつかの例を挙げてください。" class="phphistorical_Version2_mids_title">HTMLのブール属性とは何ですか?いくつかの例を挙げてください。</a><span class="Articlelist_txts_time">Apr 25, 2025 am 12:01 AM</span><p class="Articlelist_txts_p">ブール属性は、値なしでアクティブ化されるHTMLの特別な属性です。 1.ブール属性は、無効化された入力ボックスを無効にするなど、存在するかどうかによって、要素の動作を制御します。 2.彼らの実用的な原則は、ブラウザが異なっているときに属性の存在に応じて要素の動作を変更することです。 3.基本的な使用法は、属性を直接追加することであり、高度な使用法はJavaScriptを介して動的に制御できます。 4.一般的な間違いは、値を設定する必要があると誤って考えており、正しい執筆方法は簡潔にする必要があります。 5.ベストプラクティスは、コードを簡潔に保ち、ブールのプロパティを合理的に使用して、Webページのパフォーマンスとユーザーエクスペリエンスを最適化することです。</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796800895.html" title="HTMLコードをどのように検証できますか?" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174542425237814.jpg?x-oss-process=image/resize,p_40" alt="HTMLコードをどのように検証できますか?" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/ja/faq/1796800895.html" title="HTMLコードをどのように検証できますか?" class="phphistorical_Version2_mids_title">HTMLコードをどのように検証できますか?</a><span class="Articlelist_txts_time">Apr 24, 2025 am 12:04 AM</span><p class="Articlelist_txts_p">HTMLコードは、オンラインバリデーター、統合ツール、自動化されたプロセスを使用するとクリーンになります。 1)w3cmarkupvalidationserviceを使用して、HTMLコードをオンラインで確認します。 2)リアルタイム検証のためにVisualStudiocodeにhtmlhint拡張機能をインストールして構成します。 3)HTMLTIDYを使用して、建設プロセスでHTMLファイルを自動的に検証およびクリーニングします。</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796800590.html" title="HTML対CSSおよびJavaScript:Webテクノロジーの比較" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174533794691849.jpg?x-oss-process=image/resize,p_40" alt="HTML対CSSおよびJavaScript:Webテクノロジーの比較" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/ja/faq/1796800590.html" title="HTML対CSSおよびJavaScript:Webテクノロジーの比較" class="phphistorical_Version2_mids_title">HTML対CSSおよびJavaScript:Webテクノロジーの比較</a><span class="Articlelist_txts_time">Apr 23, 2025 am 12:05 AM</span><p class="Articlelist_txts_p">HTML、CSS、およびJavaScriptは、最新のWebページを構築するためのコアテクノロジーです。1。HTMLはWebページ構造を定義します。2。CSSはWebページの外観に責任があります。</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796800099.html" title="マークアップ言語としてのHTML:その機能と目的" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174525137146935.jpg?x-oss-process=image/resize,p_40" alt="マークアップ言語としてのHTML:その機能と目的" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/ja/faq/1796800099.html" title="マークアップ言語としてのHTML:その機能と目的" class="phphistorical_Version2_mids_title">マークアップ言語としてのHTML:その機能と目的</a><span class="Articlelist_txts_time">Apr 22, 2025 am 12:02 AM</span><p class="Articlelist_txts_p">HTMLの機能は、Webページの構造とコンテンツを定義することであり、その目的は、情報を表示するための標準化された方法を提供することです。 1)HTMLは、タイトルやパラグラフなどのタグや属性を使用して、Webページのさまざまな部分を整理しています。 2)コンテンツとパフォーマンスの分離をサポートし、メンテナンス効率を向上させます。 3)HTMLは拡張可能であり、カスタムタグがSEOを強化できるようにします。</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796798320.html" title="HTML、CSS、およびJavaScriptの未来:Web開発動向" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174499214213783.jpg?x-oss-process=image/resize,p_40" alt="HTML、CSS、およびJavaScriptの未来:Web開発動向" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/ja/faq/1796798320.html" title="HTML、CSS、およびJavaScriptの未来:Web開発動向" class="phphistorical_Version2_mids_title">HTML、CSS、およびJavaScriptの未来:Web開発動向</a><span class="Articlelist_txts_time">Apr 19, 2025 am 12:02 AM</span><p class="Articlelist_txts_p">HTMLの将来の傾向はセマンティクスとWebコンポーネントであり、CSSの将来の傾向はCSS-in-JSとCSShoudiniであり、JavaScriptの将来の傾向はWebAssemblyとServerLessです。 1。HTMLセマンティクスはアクセシビリティとSEO効果を改善し、Webコンポーネントは開発効率を向上させますが、ブラウザの互換性に注意を払う必要があります。 2。CSS-in-JSは、スタイル管理の柔軟性を高めますが、ファイルサイズを増やす可能性があります。 CSShoudiniは、CSSレンダリングの直接操作を可能にします。 3. Webassemblyブラウザーアプリケーションのパフォーマンスを最適化しますが、急な学習曲線があり、サーバーレスは開発を簡素化しますが、コールドスタートの問題の最適化が必要です。</p></div></div><a href="https://m.php.cn/ja/web-designer.html" class="phpgenera_Details_mainL4_botton"><span>See all articles</span><img class="lazy" data-src="/static/imghwm/down_right.png" src="/static/imghw/default1.png" alt="" /></a></div><ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-6t+ed+2i-1n-4w" data-ad-client="ca-pub-5902227090019525" data-ad-slot="8966999616"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><div class="AI_ToolDetails_main4sR"><div class="phpgenera_Details_mainR3"><div class="phpmain1_4R_readrank"><div class="phpmain1_4R_readrank_top"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="/static/imghwm/hottools2.png" src="/static/imghw/default1.png" alt="" /><h2>ホットAIツール</h2></div><div class="phpgenera_Details_mainR3_bottom"><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/ai/undresserai-undress" title="Undresser.AI Undress"class="phpmain_tab2_mids_title"><h3>Undresser.AI Undress</h3></a><p>リアルなヌード写真を作成する AI 搭載アプリ</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/ai/ai-clothes-remover" title="AI Clothes Remover"class="phpmain_tab2_mids_title"><h3>AI Clothes Remover</h3></a><p>写真から衣服を削除するオンライン AI ツール。</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/ai/undress-ai-tool" title="Undress AI Tool"class="phpmain_tab2_mids_title"><h3>Undress AI Tool</h3></a><p>脱衣画像を無料で</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/ai/clothoffio" title="Clothoff.io"class="phpmain_tab2_mids_title"><h3>Clothoff.io</h3></a><p>AI衣類リムーバー</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/ai/video-swap" title="Video Face Swap"class="phpmain_tab2_mids_title"><h3>Video Face Swap</h3></a><p>完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。</p></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/ja/ai">もっと見る</a></div></div></div><div class="phpgenera_Details_mainR4"><div class="phpmain1_4R_readrank"><div class="phpmain1_4R_readrank_top"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="/static/imghwm/hotarticle2.png" src="/static/imghw/default1.png" alt="" /><h2>人気の記事</h2></div><div class="phpgenera_Details_mainR4_bottom"><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/1796785841.html" title="アサシンのクリードシャドウズ:シーシェルリドルソリューション" class="phpgenera_Details_mainR4_bottom_title">アサシンのクリードシャドウズ:シーシェルリドルソリューション</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>1 か月前</span><span>ByDDD</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/1796789525.html" title="Windows11 KB5054979の新しいものと更新の問題を修正する方法" class="phpgenera_Details_mainR4_bottom_title">Windows11 KB5054979の新しいものと更新の問題を修正する方法</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>3週間前</span><span>ByDDD</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/1796785857.html" title="Atomfallのクレーンコントロールキーカードを見つける場所" class="phpgenera_Details_mainR4_bottom_title">Atomfallのクレーンコントロールキーカードを見つける場所</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>1 か月前</span><span>ByDDD</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/1796793874.html" title="KB5055523を修正する方法Windows 11にインストールできませんか?" class="phpgenera_Details_mainR4_bottom_title">KB5055523を修正する方法Windows 11にインストールできませんか?</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>2週間前</span><span>ByDDD</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/1796787760.html" title="Inzoi:学校と大学への応募方法" class="phpgenera_Details_mainR4_bottom_title">Inzoi:学校と大学への応募方法</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>3週間前</span><span>ByDDD</span></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/ja/article.html">もっと見る</a></div></div></div><div class="phpgenera_Details_mainR3"><div class="phpmain1_4R_readrank"><div class="phpmain1_4R_readrank_top"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="/static/imghwm/hottools2.png" src="/static/imghw/default1.png" alt="" /><h2>ホットツール</h2></div><div class="phpgenera_Details_mainR3_bottom"><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/toolset/development-tools/500" title="SublimeText3 Mac版" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png" src="/static/imghw/default1.png" alt="SublimeText3 Mac版" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/toolset/development-tools/500" title="SublimeText3 Mac版" class="phpmain_tab2_mids_title"><h3>SublimeText3 Mac版</h3></a><p>神レベルのコード編集ソフト(SublimeText3)</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/toolset/development-tools/1557" title="mPDF" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/003/169206948656118.png" src="/static/imghw/default1.png" alt="mPDF" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/toolset/development-tools/1557" title="mPDF" class="phpmain_tab2_mids_title"><h3>mPDF</h3></a><p>mPDF は、UTF-8 でエンコードされた HTML から PDF ファイルを生成できる PHP ライブラリです。オリジナルの作者である Ian Back は、Web サイトから「オンザフライ」で PDF ファイルを出力し、さまざまな言語を処理するために mPDF を作成しました。 HTML2FPDF などのオリジナルのスクリプトよりも遅く、Unicode フォントを使用すると生成されるファイルが大きくなりますが、CSS スタイルなどをサポートし、多くの機能強化が施されています。 RTL (アラビア語とヘブライ語) や CJK (中国語、日本語、韓国語) を含むほぼすべての言語をサポートします。ネストされたブロックレベル要素 (P、DIV など) をサポートします。</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/toolset/development-tools/1575" title="DVWA" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/005/169233952150073.png" src="/static/imghw/default1.png" alt="DVWA" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/toolset/development-tools/1575" title="DVWA" class="phpmain_tab2_mids_title"><h3>DVWA</h3></a><p>Damn Vulnerable Web App (DVWA) は、非常に脆弱な PHP/MySQL Web アプリケーションです。その主な目的は、セキュリティ専門家が法的環境でスキルとツールをテストするのに役立ち、Web 開発者が Web アプリケーションを保護するプロセスをより深く理解できるようにし、教師/生徒が教室環境で Web アプリケーションを教え/学習できるようにすることです。安全。 DVWA の目標は、シンプルでわかりやすいインターフェイスを通じて、さまざまな難易度で最も一般的な Web 脆弱性のいくつかを実践することです。このソフトウェアは、</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/toolset/development-tools/1545" title="SAP NetWeaver Server Adapter for Eclipse" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/007/169165990824460.png" src="/static/imghw/default1.png" alt="SAP NetWeaver Server Adapter for Eclipse" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/toolset/development-tools/1545" title="SAP NetWeaver Server Adapter for Eclipse" class="phpmain_tab2_mids_title"><h3>SAP NetWeaver Server Adapter for Eclipse</h3></a><p>Eclipse を SAP NetWeaver アプリケーション サーバーと統合します。</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/toolset/development-tools/1527" title="VSCode Windows 64 ビットのダウンロード" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/5e2151b57e8e3927.png" src="/static/imghw/default1.png" alt="VSCode Windows 64 ビットのダウンロード" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/toolset/development-tools/1527" title="VSCode Windows 64 ビットのダウンロード" class="phpmain_tab2_mids_title"><h3>VSCode Windows 64 ビットのダウンロード</h3></a><p>Microsoft によって発売された無料で強力な IDE エディター</p></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/ja/ai">もっと見る</a></div></div></div><div class="phpgenera_Details_mainR4"><div class="phpmain1_4R_readrank"><div class="phpmain1_4R_readrank_top"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="/static/imghwm/hotarticle2.png" src="/static/imghw/default1.png" alt="" /><h2>ホットトピック</h2></div><div class="phpgenera_Details_mainR4_bottom"><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/gmailyxdlrkzn" title="Gmailメールのログイン入り口はどこですか?" class="phpgenera_Details_mainR4_bottom_title">Gmailメールのログイン入り口はどこですか?</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/eyess.png" src="/static/imghw/default1.png" alt="" /><span>7783</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/tiezi.png" src="/static/imghw/default1.png" alt="" /><span>15</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/faq/java-tutorial" title="Java チュートリアル" class="phpgenera_Details_mainR4_bottom_title">Java チュートリアル</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/eyess.png" src="/static/imghw/default1.png" alt="" /><span>1644</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/tiezi.png" src="/static/imghw/default1.png" alt="" /><span>14</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/cakephp-tutor" title="CakePHP チュートリアル" class="phpgenera_Details_mainR4_bottom_title">CakePHP チュートリアル</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/eyess.png" src="/static/imghw/default1.png" alt="" /><span>1400</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/tiezi.png" src="/static/imghw/default1.png" alt="" /><span>52</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/laravel-tutori" title="Laravel チュートリアル" class="phpgenera_Details_mainR4_bottom_title">Laravel チュートリアル</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/eyess.png" src="/static/imghw/default1.png" alt="" /><span>1297</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/tiezi.png" src="/static/imghw/default1.png" alt="" /><span>25</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/php-tutorial" title="PHP チュートリアル" class="phpgenera_Details_mainR4_bottom_title">PHP チュートリアル</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/eyess.png" src="/static/imghw/default1.png" alt="" /><span>1234</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/tiezi.png" src="/static/imghw/default1.png" alt="" /><span>29</span></div></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/ja/faq/zt">もっと見る</a></div></div></div></div></main><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="5027754603"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><footer><div class="footer"><div class="footertop"><img src="/static/imghwm/logo.png" alt=""><p>福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!</p></div><div class="footermid"><a href="https://m.php.cn/ja/about/us.html">私たちについて</a><a href="https://m.php.cn/ja/about/disclaimer.html">免責事項</a><a href="https://m.php.cn/ja/update/article_0_1.html">Sitemap</a></div><div class="footerbottom"><p> © php.cn All rights reserved </p></div></div></footer><script>isLogin = 0;</script><script type="text/javascript" src="/static/layui/layui.js"></script><script type="text/javascript" src="/static/js/global.js?4.9.47"></script><script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script><link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css' type='text/css' media='all'/><script type='text/javascript' src='/static/js/viewer.min.js?1'></script><script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script><script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://tongji.php.cn/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '9']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script><script> jQuery.fn.wait = function (func, times, interval) { var _times = times || -1, //100次 _interval = interval || 20, //20毫秒每次 _self = this, _selector = this.selector, //选择器 _iIntervalID; //定时器id if( this.length ){ //如果已经获取到了,就直接执行函数 func && func.call(this); } else { _iIntervalID = setInterval(function() { if(!_times) { //是0就退出 clearInterval(_iIntervalID); } _times <= 0 || _times--; //如果是正数就 -- _self = $(_selector); //再次选择 if( _self.length ) { //判断是否取到 func && func.call(_self); clearInterval(_iIntervalID); } }, _interval); } return this; } $("table.syntaxhighlighter").wait(function() { $('table.syntaxhighlighter').append("<p class='cnblogs_code_footer'><span class='cnblogs_code_footer_icon'></span></p>"); }); $(document).on("click", ".cnblogs_code_footer",function(){ $(this).parents('table.syntaxhighlighter').css('display','inline-table');$(this).hide(); }); $('.nphpQianCont').viewer({navbar:true,title:false,toolbar:false,movable:false,viewed:function(){$('img').click(function(){$('.viewer-close').trigger('click');});}}); </script><script>// 通用函数,用于显示或隐藏元素 function toggleElementsDisplay(className, show) { const elements = document.getElementsByClassName(className); for (let i = 0; i < elements.length; i++) { elements[i].style.display = show ? "block" : "none"; } } // 页面加载完成后执行的主函数 document.addEventListener("DOMContentLoaded", () => { // 1. 绑定菜单按钮事件 const bindMenuEvents = () => { const toggleDisplay = (className, show, eventId) => { const element = document.getElementById(eventId); if (element) { element.addEventListener("click", (event) => { event.preventDefault(); toggleElementsDisplay(className, show); }); } }; toggleDisplay("m_editormain12main", true, "fixed_tab_img"); toggleDisplay("m_editormain12main", false, "fixed_tab_topi"); toggleDisplay("m_editormain12main", false, "fixed_tab_close"); toggleDisplay("m_menu", true, "lan1sp"); toggleDisplay("m_menu", false, "m_editormain12main_topi_sp"); toggleDisplay("m_menu_lang", true, "lan1"); toggleDisplay("m_menu_lang", false, "m_editormain12main_topi_lan"); }; // 2. 绑定滚动链接事件 const bindScrollLinks = () => { const titleList = document.getElementById("fixed_tab_titlelist"); const menuMain = document.getElementsByClassName("m_editormain12main")[0]; const links = document.querySelectorAll('.fixed_tab_a'); links.forEach(linkElement => { if (linkElement) { linkElement.addEventListener("click", async (e) => { e.preventDefault(); e.stopPropagation(); // 先隐藏菜单 if (menuMain) menuMain.style.display = "none"; if (titleList) titleList.style.display = "none"; // 获取目标元素的 ID const targetId = linkElement.getAttribute('href').substring(1); const targetElement = document.getElementById(targetId); // 等待 DOM 更新 await new Promise(resolve => requestAnimationFrame(resolve)); // 滚动到目标位置 if (targetElement) { targetElement.scrollIntoView({ behavior: "smooth", block: "start" }); } }); } }); }; // 3. 绑定关闭按钮事件 const bindCloseButton = () => { const closeButton = document.querySelector(".phpgenera_Details_mainR1_close"); const container = document.querySelector(".phpgenera_Details_mainR1"); if (closeButton && container) { closeButton.addEventListener("click", (event) => { event.preventDefault(); container.style.display = "none"; }); } }; // 4. 初始化菜单交互功能 const initMenuInteraction = () => { const menuGroupElements = document.querySelectorAll('.layui-menu-item-group'); menuGroupElements.forEach(menuItem => { menuItem.addEventListener('click', function(event) { if (event.target.closest('.m_menusnames')) { return; } this.classList.toggle('layui-menu-item-down'); this.classList.toggle('layui-menu-item-up'); const subMenuContainer = this.querySelector('.m_menusnames'); const icon = this.querySelector('.layui-icon'); if (subMenuContainer && icon) { if (this.classList.contains('layui-menu-item-down')) { subMenuContainer.style.display = 'block'; icon.classList.remove('layui-icon-down'); icon.classList.add('layui-icon-up'); } else { subMenuContainer.style.display = 'none'; icon.classList.remove('layui-icon-up'); icon.classList.add('layui-icon-down'); } } }); }); }; // 5. 初始化 layui 功能 const initLayui = () => { if (typeof layui !== 'undefined') { layui.use(function () { var util = layui.util; if (util && util.fixbar) { util.fixbar({ on: { mouseenter: function (type) { if (layer && layer.tips) { layer.tips(type, this, { tips: 4, fixed: true, }); } }, mouseleave: function (type) { if (layer && layer.closeAll) { layer.closeAll("tips"); } }, }, }); } }); } }; // 执行所有初始化函数 bindMenuEvents(); bindScrollLinks(); bindCloseButton(); initMenuInteraction(); initLayui(); }); </script></body></html>