찾다
웹 프론트엔드HTML 튜토리얼html에 그림 삽입 및 html에 그림 추가의 예

HTML에 그림을 삽입하려면 HTML 태그가 필요합니다.

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 소스 코드에 세 개의 그림을 각각 삽입합니다. 하나는 원래 크기이고, 하나는 너비와 높이가 작게 변경되고, 하나는 너비와 높이가 크게 변경되었습니다.

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/ko/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/ko/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은 웹 페이지를 작성하는 데 사용되는 언어로, 태그 및 속성을 통해 웹 페이지 구조 및 컨텐츠를 정의합니다. 1) HTML과 같은 태그를 통해 문서 구조를 구성합니다. 2) 브라우저는 HTML을 구문 분석하여 DOM을 빌드하고 웹 페이지를 렌더링합니다. 3) 멀티미디어 기능을 향상시키는 HTML5의 새로운 기능. 4) 일반적인 오류에는 탈수 된 레이블과 인용되지 않은 속성 값이 포함됩니다. 5) 최적화 제안에는 시맨틱 태그 사용 및 파일 크기 감소가 포함됩니다.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ko/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/ko/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 및 JavaScript : 1) HtmlStructuresContent, 2) CSSSTYLESIT, 및 3) JAVASCRIPTADDSINGINTERACTIVITY, BASISOFMODERNWEBEXPERIENCES를 형성합니다.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ko/faq/1796794180.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/174430155217186.jpg?x-oss-process=image/resize,p_40" alt="HTML의 역할 : 웹 컨텐츠 구조" src="/static/imghw/default1.png"  /></a><a href="https://m.php.cn/ko/faq/1796794180.html" title="HTML의 역할 : 웹 컨텐츠 구조" class="phphistorical_Version2_mids_title">HTML의 역할 : 웹 컨텐츠 구조</a><span class="Articlelist_txts_time">Apr 11, 2025 am	 12:12 AM</span><p class="Articlelist_txts_p">HTML의 역할은 태그 및 속성을 통해 웹 페이지의 구조와 내용을 정의하는 것입니다. 1. HTML은 읽기 쉽고 이해하기 쉽게하는 태그를 통해 컨텐츠를 구성합니다. 2. 접근성 및 SEO와 같은 시맨틱 태그 등을 사용하십시오. 3. HTML 코드를 최적화하면 웹 페이지로드 속도 및 사용자 경험이 향상 될 수 있습니다.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ko/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/ko/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">"Code"는 "Code"BroadlyIncludeLugageslikeJavaScriptandPyThonforFunctureS (htMlisAspecificTypeofCodeFocudecturecturingWebContent)</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ko/faq/1796793129.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/174412873346901.jpg?x-oss-process=image/resize,p_40" alt="HTML, CSS 및 JavaScript : 웹 개발자를위한 필수 도구" src="/static/imghw/default1.png"  /></a><a href="https://m.php.cn/ko/faq/1796793129.html" title="HTML, CSS 및 JavaScript : 웹 개발자를위한 필수 도구" class="phphistorical_Version2_mids_title">HTML, CSS 및 JavaScript : 웹 개발자를위한 필수 도구</a><span class="Articlelist_txts_time">Apr 09, 2025 am	 12:12 AM</span><p class="Articlelist_txts_p">HTML, CSS 및 JavaScript는 웹 개발의 세 가지 기둥입니다. 1. HTML은 웹 페이지 구조를 정의하고 등과 같은 태그를 사용합니다. 2. CSS는 색상, 글꼴 크기 등과 같은 선택기 및 속성을 사용하여 웹 페이지 스타일을 제어합니다.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ko/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/ko/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은 웹 구조를 정의하고 CSS는 스타일과 레이아웃을 담당하며 JavaScript는 동적 상호 작용을 제공합니다. 세 사람은 웹 개발에서 의무를 수행하고 화려한 웹 사이트를 공동으로 구축합니다.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ko/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/ko/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) 기본 태그를 마스터하여 웹 페이지를 만들기 시작하십시오. 3) 유연성이 높고 CSS 및 JavaScript와 함께 사용할 수 있습니다. 4) 풍부한 학습 리소스와 현대 도구는 학습 과정을 지원합니다.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/ko/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/ko/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">anexampleStartingtaginhtmlis, whithbeginsaparagraph.startingtagsareessentialinhtmlastheyinitiate rements, definetheirtypes, andarecrucialforstructurituringwebpages 및 smanstlingthedom.</p></div></div><a href="https://m.php.cn/ko/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/ko/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/ko/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/ko/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/ko/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/ko/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/ko/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/ko/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/ko/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/ko/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/ko/ai/ai-hentai-generator" title="AI Hentai Generator"class="phpmain_tab2_mids_title"><h3>AI Hentai Generator</h3></a><p>AI Hentai를 무료로 생성하십시오.</p></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/ko/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/ko/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/ko/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/ko/faq/1796785841.html" title="어 ass 신 크리드 그림자 : 조개 수수께끼 솔루션" class="phpgenera_Details_mainR4_bottom_title">어 ass 신 크리드 그림자 : 조개 수수께끼 솔루션</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/ko/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/ko/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/ko/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/ko/toolset/development-tools/660" title="Atom Editor 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/58ed8cfa94c1a582.jpg" src="/static/imghw/default1.png" alt="Atom Editor Mac 버전 다운로드" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ko/toolset/development-tools/660" title="Atom Editor Mac 버전 다운로드" class="phpmain_tab2_mids_title"><h3>Atom Editor Mac 버전 다운로드</h3></a><p>가장 인기 있는 오픈 소스 편집기</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ko/toolset/development-tools/1545" title="Eclipse용 SAP NetWeaver 서버 어댑터" 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="Eclipse용 SAP NetWeaver 서버 어댑터" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ko/toolset/development-tools/1545" title="Eclipse용 SAP NetWeaver 서버 어댑터" class="phpmain_tab2_mids_title"><h3>Eclipse용 SAP NetWeaver 서버 어댑터</h3></a><p>Eclipse를 SAP NetWeaver 애플리케이션 서버와 통합합니다.</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ko/toolset/development-tools/510" title="PhpStorm 맥 버전" 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/58d377b7b49ae828.jpg" src="/static/imghw/default1.png" alt="PhpStorm 맥 버전" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ko/toolset/development-tools/510" title="PhpStorm 맥 버전" class="phpmain_tab2_mids_title"><h3>PhpStorm 맥 버전</h3></a><p>최신(2018.2.1) 전문 PHP 통합 개발 도구</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ko/toolset/development-tools/469" title="드림위버 CS6" 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/58d0e0fc74683535.jpg" src="/static/imghw/default1.png" alt="드림위버 CS6" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ko/toolset/development-tools/469" title="드림위버 CS6" class="phpmain_tab2_mids_title"><h3>드림위버 CS6</h3></a><p>시각적 웹 개발 도구</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ko/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/ko/toolset/development-tools/1557" title="mPDF" class="phpmain_tab2_mids_title"><h3>mPDF</h3></a><p>mPDF는 UTF-8로 인코딩된 HTML에서 PDF 파일을 생성할 수 있는 PHP 라이브러리입니다. 원저자인 Ian Back은 자신의 웹 사이트에서 "즉시" PDF 파일을 출력하고 다양한 언어를 처리하기 위해 mPDF를 작성했습니다. HTML2FPDF와 같은 원본 스크립트보다 유니코드 글꼴을 사용할 때 속도가 느리고 더 큰 파일을 생성하지만 CSS 스타일 등을 지원하고 많은 개선 사항이 있습니다. RTL(아랍어, 히브리어), CJK(중국어, 일본어, 한국어)를 포함한 거의 모든 언어를 지원합니다. 중첩된 블록 수준 요소(예: P, DIV)를 지원합니다.</p></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/ko/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/ko/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>7488</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/ko/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/ko/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/ko/faq/winactivationkeyper" title="Win11 활성화 키 영구"  class="phpgenera_Details_mainR4_bottom_title">Win11 활성화 키 영구</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>51</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/ko/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>40</span></div></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/ko/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/ko/about/us.html">회사 소개</a><a href="https://m.php.cn/ko/about/disclaimer.html">부인 성명</a><a href="https://m.php.cn/ko/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>