検索
ホームページウェブフロントエンドhtmlチュートリアルHTML への画像の挿入と HTML への画像の追加の例

HTMLに画像を挿入する 画像を表示するには、imgタグが必要です。

1. HTML画像タグの構文

コードは次のとおりです:

<img  src="/static/imghwm/default1.png"  data-src="pcss5-logo-201305.gif"  class="lazy"      style="max-width:90%"  style="max-width:90%" / alt="HTML への画像の挿入と HTML への画像の追加の例" >

imgの紹介:

srcの後に画像のパスアドレスが続きます

width 画像の幅を設定します

height 画像の高さを設定します

2.具体的なHTML画像表示例 - TOP

HTMLソースコードに3枚の画像を挿入します。1つは元のサイズ、1つは幅と高さを小さく変更し、もう1つは幅と高さを大きく変更します。

1. サンプルの完全な HTML コード:

コードは次のとおりです:

 
 
 
 
图片插入html 在线演示 <a href="http://www.vcss.com</title">www.vcss.com</title</a>> 
</head> 

<body> 
<p>原始大图片</p> 
<p> 
<img  src="/static/imghwm/default1.png"  data-src="pcss5-logo-201305.gif"  class="lazy"      style="max-width:90%"  style="max-width:90%" / alt="HTML への画像の挿入と HTML への画像の追加の例" > 
</p> 
<p>改小图片</p> 
<p> 
<img  src="/static/imghwm/default1.png"  data-src="pcss5-logo-201305.gif"  class="lazy"      style="max-width:90%"  style="max-width:90%" / alt="HTML への画像の挿入と HTML への画像の追加の例" > 
</p> 
<p>改大图片</p> 
<p> 
<img  src="/static/imghwm/default1.png"  data-src="pcss5-logo-201305.gif"  class="lazy"      style="max-width:90%"  style="max-width:90%" / alt="HTML への画像の挿入と HTML への画像の追加の例" > 
</p> 
</body> 
</html></pre><p>2. HTML への画像の挿入例のスクリーンショット</p>
<p><img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/013/01a9772901e3e927a85b643220ded383-0.png?x-oss-process=image/resize,p_40" class="lazy" alt="HTML への画像の挿入と HTML への画像の追加の例"    style="max-width:90%"  style="max-width:90%" title="HTML への画像の挿入と HTML への画像の追加の例"></p>
<p> HTML 画像の挿入の例を表示するスクリーンショット</p>
<p>詳細htmlに画像を挿入する例とhtmlに画像を追加する関連記事 PHPの中国語サイトに注目! </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/1796795191.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/174447404295304.jpg?x-oss-process=image/resize,p_40" alt="テキストからウェブサイトへ:HTMLの力" src="/static/imghw/default1.png"  /></a><a href="https://m.php.cn/ja/faq/1796795191.html" title="テキストからウェブサイトへ:HTMLの力" class="phphistorical_Version2_mids_title">テキストからウェブサイトへ:HTMLの力</a><span class="Articlelist_txts_time">Apr 13, 2025 am	 12:07 AM</span><p class="Articlelist_txts_p">HTMLは、Webページを構築するために使用される言語であり、タグと属性を使用してWebページの構造とコンテンツを定義します。 1)htmlは、などのタグを介してドキュメント構造を整理します。 2)ブラウザはHTMLを分析してDOMを構築し、Webページをレンダリングします。 3)マルチメディア関数を強化するなど、HTML5の新機能。 4)一般的なエラーには、閉じられていないラベルと引用されていない属性値が含まれます。 5)最適化の提案には、セマンティックタグの使用とファイルサイズの削減が含まれます。</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796794693.html" title="HTML、CSS、およびJavaScriptの理解:初心者向けガイド" 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/174438733162787.jpg?x-oss-process=image/resize,p_40" alt="HTML、CSS、およびJavaScriptの理解:初心者向けガイド" src="/static/imghw/default1.png"  /></a><a href="https://m.php.cn/ja/faq/1796794693.html" title="HTML、CSS、およびJavaScriptの理解:初心者向けガイド" class="phphistorical_Version2_mids_title">HTML、CSS、およびJavaScriptの理解:初心者向けガイド</a><span class="Articlelist_txts_time">Apr 12, 2025 am	 12:02 AM</span><p class="Articlelist_txts_p">webdevelopmentReliesOnhtml、css、andjavascript:1)htmlStructuresContent、2)cssStylesit、および3)Javascriptaddsinteractivity、形成、</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796794180.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/174430155217186.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/1796794180.html" title="HTMLの役割:Webコンテンツの構造" class="phphistorical_Version2_mids_title">HTMLの役割:Webコンテンツの構造</a><span class="Articlelist_txts_time">Apr 11, 2025 am	 12:12 AM</span><p class="Articlelist_txts_p">HTMLの役割は、タグと属性を使用してWebページの構造とコンテンツを定義することです。 1。HTMLは、読みやすく理解しやすいようなタグを介してコンテンツを整理します。 2。アクセシビリティとSEOを強化するには、セマンティックタグなどを使用します。 3. HTMLコードの最適化により、Webページの読み込み速度とユーザーエクスペリエンスが向上する可能性があります。</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796793634.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/174424853215422.jpg?x-oss-process=image/resize,p_40" alt="HTMLとコード:用語を詳しく見る" src="/static/imghw/default1.png"  /></a><a href="https://m.php.cn/ja/faq/1796793634.html" title="HTMLとコード:用語を詳しく見る" class="phphistorical_Version2_mids_title">HTMLとコード:用語を詳しく見る</a><span class="Articlelist_txts_time">Apr 10, 2025 am	 09:28 AM</span><p class="Articlelist_txts_p">htmlisaspecifictypeofcodefocuseduructuringwebcontent</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796793129.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/174412873346901.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/1796793129.html" title="HTML、CSS、およびJavaScript:Web開発者に不可欠なツール" class="phphistorical_Version2_mids_title">HTML、CSS、およびJavaScript:Web開発者に不可欠なツール</a><span class="Articlelist_txts_time">Apr 09, 2025 am	 12:12 AM</span><p class="Articlelist_txts_p">HTML、CSS、およびJavaScriptは、Web開発の3つの柱です。 1。HTMLは、Webページ構造を定義し、などなどのタグを使用します。2。CSSは、色、フォントサイズなどのセレクターと属性を使用してWebページスタイルを制御します。</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796792987.html" title="HTML、CSS、およびJavaScriptの役割:コアの責任" 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/174411031220217.jpg?x-oss-process=image/resize,p_40" alt="HTML、CSS、およびJavaScriptの役割:コアの責任" src="/static/imghw/default1.png"  /></a><a href="https://m.php.cn/ja/faq/1796792987.html" title="HTML、CSS、およびJavaScriptの役割:コアの責任" class="phphistorical_Version2_mids_title">HTML、CSS、およびJavaScriptの役割:コアの責任</a><span class="Articlelist_txts_time">Apr 08, 2025 pm	 07:05 PM</span><p class="Articlelist_txts_p">HTMLはWeb構造を定義し、CSSはスタイルとレイアウトを担当し、JavaScriptは動的な相互作用を提供します。 3人はWeb開発で職務を遂行し、共同でカラフルなWebサイトを構築します。</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796791823.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/174395586298618.jpg?x-oss-process=image/resize,p_40" alt="HTMLは初心者のために簡単に学ぶことができますか?" src="/static/imghw/default1.png"  /></a><a href="https://m.php.cn/ja/faq/1796791823.html" title="HTMLは初心者のために簡単に学ぶことができますか?" class="phphistorical_Version2_mids_title">HTMLは初心者のために簡単に学ぶことができますか?</a><span class="Articlelist_txts_time">Apr 07, 2025 am	 12:11 AM</span><p class="Articlelist_txts_p">HTMLは、簡単に学習しやすく、結果をすばやく見ることができるため、初心者に適しています。 1)HTMLの学習曲線はスムーズで簡単に開始できます。 2)基本タグをマスターして、Webページの作成を開始します。 3)柔軟性が高く、CSSおよびJavaScriptと組み合わせて使用​​できます。 4)豊富な学習リソースと最新のツールは、学習プロセスをサポートしています。</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ja/faq/1796791144.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/174386905283883.jpg?x-oss-process=image/resize,p_40" alt="HTMLでの開始タグの例は何ですか?" src="/static/imghw/default1.png"  /></a><a href="https://m.php.cn/ja/faq/1796791144.html" title="HTMLでの開始タグの例は何ですか?" class="phphistorical_Version2_mids_title">HTMLでの開始タグの例は何ですか?</a><span class="Articlelist_txts_time">Apr 06, 2025 am	 12:04 AM</span><p class="Articlelist_txts_p">Anexampleapalofastartingtaginhtmlis、それはaperginsaparagraph.startingtagsaresentionentientiontheyinitiateelements、definetheirtypes、およびarecrucialforurturingwebpagesandcontingthomedomを構築します。</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/ai-hentai-generator" title="AI Hentai Generator" 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/173405034393877.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Hentai Generator" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/ai/ai-hentai-generator" title="AI Hentai Generator"class="phpmain_tab2_mids_title"><h3>AI Hentai Generator</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/1796780570.html" title="R.E.P.O.説明されたエネルギー結晶と彼らが何をするか(黄色のクリスタル)" class="phpgenera_Details_mainR4_bottom_title">R.E.P.O.説明されたエネルギー結晶と彼らが何をするか(黄色のクリスタル)</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>3週間前</span><span>By尊渡假赌尊渡假赌尊渡假赌</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/1796780641.html" title="R.E.P.O.最高のグラフィック設定" class="phpgenera_Details_mainR4_bottom_title">R.E.P.O.最高のグラフィック設定</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>3週間前</span><span>By尊渡假赌尊渡假赌尊渡假赌</span></div></div><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>2週間前</span><span>ByDDD</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/1796780520.html" title="R.E.P.O.誰も聞こえない場合はオーディオを修正する方法" class="phpgenera_Details_mainR4_bottom_title">R.E.P.O.誰も聞こえない場合はオーディオを修正する方法</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>3週間前</span><span>By尊渡假赌尊渡假赌尊渡假赌</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/1796779766.html" title="WWE 2K25:Myriseのすべてのロックを解除する方法" class="phpgenera_Details_mainR4_bottom_title">WWE 2K25:Myriseのすべてのロックを解除する方法</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>4週間前</span><span>By尊渡假赌尊渡假赌尊渡假赌</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/121" title="ゼンドスタジオ 13.0.1" 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/58ab97ecd1ab2670.jpg" src="/static/imghw/default1.png" alt="ゼンドスタジオ 13.0.1" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/toolset/development-tools/121" title="ゼンドスタジオ 13.0.1" class="phpmain_tab2_mids_title"><h3>ゼンドスタジオ 13.0.1</h3></a><p>強力な PHP 統合開発環境</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/toolset/development-tools/1471" title="SublimeText3 Linux 新バージョン" 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/5aab420a5fb42187.jpg" src="/static/imghw/default1.png" alt="SublimeText3 Linux 新バージョン" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/toolset/development-tools/1471" title="SublimeText3 Linux 新バージョン" class="phpmain_tab2_mids_title"><h3>SublimeText3 Linux 新バージョン</h3></a><p>SublimeText3 Linux 最新バージョン</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/92" title="メモ帳++7.3.1" 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/58ab96f0f39f7357.jpg" src="/static/imghw/default1.png" alt="メモ帳++7.3.1" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/toolset/development-tools/92" title="メモ帳++7.3.1" class="phpmain_tab2_mids_title"><h3>メモ帳++7.3.1</h3></a><p>使いやすく無料のコードエディター</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/toolset/development-tools/1556" title="MantisBT" 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/004/169206588591843.png" src="/static/imghw/default1.png" alt="MantisBT" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/toolset/development-tools/1556" title="MantisBT" class="phpmain_tab2_mids_title"><h3>MantisBT</h3></a><p>Mantis は、製品の欠陥追跡を支援するために設計された、導入が簡単な Web ベースの欠陥追跡ツールです。 PHP、MySQL、Web サーバーが必要です。デモおよびホスティング サービスをチェックしてください。</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>7478</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/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>1377</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/steamdzhmcssmgs" title="Steamのアカウント名の形式は何ですか"  class="phpgenera_Details_mainR4_bottom_title">Steamのアカウント名の形式は何ですか</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>77</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>11</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/winactivationkeyper" title="Win11 Activation Key Permanent"  class="phpgenera_Details_mainR4_bottom_title">Win11 Activation Key Permanent</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>50</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>19</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/newyorktimesdailybrief" title="NYTの接続はヒントと回答です"  class="phpgenera_Details_mainR4_bottom_title">NYTの接続はヒントと回答です</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>19</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>33</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>