首页 web前端 html教程 HTML 的<title> 标签

HTML 的<title> 标签

Oct 21, 2019 pm 04:30 PM
html

HTML 标签</strong></p> <p><img src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/000/000/029/5dad6c5817ca7946.jpg" class="lazy" alt="HTML 的<title> 标签" ></p> <p>所有浏览器都支持 <title> 标签。</p> <p><strong>定义和用法  </strong>  (推荐学习:<a href="//m.sbmmt.com/div-tutorial.html" target="_self">html教程</a>)</p> <p><strong><title> 元素可定义文档的标题。<br></strong></p> <p><strong>浏览器会以特殊的方式来使用标题,并且通常把它放置在浏览器窗口的标题栏或状态栏上。</strong></p> <p>同样,当把文档加入用户的链接列表或者收藏夹或书签列表时,标题将成为该文档链接的默认名称。</p> <p><strong>提示</strong></p> <p><strong>提示:</strong><title> 标签是 <head> 标签中唯一要求包含的东西。</p> <p><strong>实例</strong></p> <p>一个简单的 HTML 文档,带有尽可能少的必需的标签:</p><pre class='brush:php;toolbar:false;'><html> <head> <title>XHTML Tag Reference</title> </head> <body> The content of the document...... </body> </html></pre><p>以上是HTML 的<title> 标签的详细内容。更多信息请关注PHP中文网其他相关文章!</p> </div> </div> <div class="wzconShengming_sp"> <div class="bzsmdiv_sp">本站声明</div> <div>本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn</div> </div> </div> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="2507867629"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <div class="AI_ToolDetails_main4sR"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5902227090019525" data-ad-slot="3653428331" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <!-- <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>热门文章</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="//m.sbmmt.com/zh/faq/1796858026.html" title="如何在Instagram上报告模仿帐户" class="phpgenera_Details_mainR4_bottom_title">如何在Instagram上报告模仿帐户</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 周前</span> <span>By 下次还敢</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="//m.sbmmt.com/zh/faq/1796862477.html" title="如何在设置(愤世嫉俗,机器人,听众,书呆子)中更改chatgpt个性" class="phpgenera_Details_mainR4_bottom_title">如何在设置(愤世嫉俗,机器人,听众,书呆子)中更改chatgpt个性</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 周前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="//m.sbmmt.com/zh/faq/1796854628.html" title="Wuchang: Fallen Feathers - Dragon Emperor Zhu Youjian Boss Fight Guide" class="phpgenera_Details_mainR4_bottom_title">Wuchang: Fallen Feathers - Dragon Emperor Zhu Youjian Boss Fight Guide</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>4 周前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="//m.sbmmt.com/zh/faq/1796859362.html" title="如何在霓虹深渊中与埃里斯战斗" class="phpgenera_Details_mainR4_bottom_title">如何在霓虹深渊中与埃里斯战斗</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 周前</span> <span>By Jack chen</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="//m.sbmmt.com/zh/faq/1796854691.html" title="PokémonTCGScarlet&Violet:Black Bolt Elite Trainer Box评论" class="phpgenera_Details_mainR4_bottom_title">PokémonTCGScarlet&Violet:Black Bolt Elite Trainer Box评论</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 周前</span> <span>By Jack chen</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="//m.sbmmt.com/zh/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/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>热AI工具</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="//m.sbmmt.com/zh/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/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="//m.sbmmt.com/zh/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="//m.sbmmt.com/zh/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/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="//m.sbmmt.com/zh/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title"> <h3>Undresser.AI Undress</h3> </a> <p>人工智能驱动的应用程序,用于创建逼真的裸体照片</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="//m.sbmmt.com/zh/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/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="//m.sbmmt.com/zh/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title"> <h3>AI Clothes Remover</h3> </a> <p>用于从照片中去除衣服的在线人工智能工具。</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="//m.sbmmt.com/zh/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/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="//m.sbmmt.com/zh/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="//m.sbmmt.com/zh/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/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="//m.sbmmt.com/zh/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_title"> <h3>Video Face Swap</h3> </a> <p>使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="//m.sbmmt.com/zh/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/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>热门文章</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="//m.sbmmt.com/zh/faq/1796858026.html" title="如何在Instagram上报告模仿帐户" class="phpgenera_Details_mainR4_bottom_title">如何在Instagram上报告模仿帐户</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 周前</span> <span>By 下次还敢</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="//m.sbmmt.com/zh/faq/1796862477.html" title="如何在设置(愤世嫉俗,机器人,听众,书呆子)中更改chatgpt个性" class="phpgenera_Details_mainR4_bottom_title">如何在设置(愤世嫉俗,机器人,听众,书呆子)中更改chatgpt个性</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 周前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="//m.sbmmt.com/zh/faq/1796854628.html" title="Wuchang: Fallen Feathers - Dragon Emperor Zhu Youjian Boss Fight Guide" class="phpgenera_Details_mainR4_bottom_title">Wuchang: Fallen Feathers - Dragon Emperor Zhu Youjian Boss Fight Guide</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>4 周前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="//m.sbmmt.com/zh/faq/1796859362.html" title="如何在霓虹深渊中与埃里斯战斗" class="phpgenera_Details_mainR4_bottom_title">如何在霓虹深渊中与埃里斯战斗</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 周前</span> <span>By Jack chen</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="//m.sbmmt.com/zh/faq/1796854691.html" title="PokémonTCGScarlet&Violet:Black Bolt Elite Trainer Box评论" class="phpgenera_Details_mainR4_bottom_title">PokémonTCGScarlet&Violet:Black Bolt Elite Trainer Box评论</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 周前</span> <span>By Jack chen</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="//m.sbmmt.com/zh/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/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>热工具</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="//m.sbmmt.com/zh/toolset/development-tools/92" title="记事本++7.3.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="记事本++7.3.1" /> </a> <div class="phpmain_tab2_mids_info"> <a href="//m.sbmmt.com/zh/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="//m.sbmmt.com/zh/toolset/development-tools/93" title="SublimeText3汉化版" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3汉化版" /> </a> <div class="phpmain_tab2_mids_info"> <a href="//m.sbmmt.com/zh/toolset/development-tools/93" title="SublimeText3汉化版" class="phpmain_tab2_mids_title"> <h3>SublimeText3汉化版</h3> </a> <p>中文版,非常好用</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="//m.sbmmt.com/zh/toolset/development-tools/121" title="禅工作室 13.0.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="禅工作室 13.0.1" /> </a> <div class="phpmain_tab2_mids_info"> <a href="//m.sbmmt.com/zh/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="//m.sbmmt.com/zh/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Dreamweaver CS6" /> </a> <div class="phpmain_tab2_mids_info"> <a href="//m.sbmmt.com/zh/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_title"> <h3>Dreamweaver CS6</h3> </a> <p>视觉化网页开发工具</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="//m.sbmmt.com/zh/toolset/development-tools/500" title="SublimeText3 Mac版" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac版" /> </a> <div class="phpmain_tab2_mids_info"> <a href="//m.sbmmt.com/zh/toolset/development-tools/500" title="SublimeText3 Mac版" class="phpmain_tab2_mids_title"> <h3>SublimeText3 Mac版</h3> </a> <p>神级代码编辑软件(SublimeText3)</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="//m.sbmmt.com/zh/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/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>热门话题</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="//m.sbmmt.com/zh/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 src="/static/imghw/eyess.png" alt="" /> <span>1596</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>276</span> </div> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="//m.sbmmt.com/zh/faq/zt">显示更多</a> </div> </div> </div> </div> </div> <div class="Article_Details_main2"> <div class="phpgenera_Details_mainL4"> <div class="phpmain1_2_top"> <a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img src="/static/imghw/index2_title2.png" alt="" /></a> </div> <div class="phpgenera_Details_mainL4_info"> <div class="phphistorical_Version2_mids"> <a href="//m.sbmmt.com/zh/faq/1796870001.html" title="为什么我的HTML图像未显示?" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/431/639/175531008250266.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="为什么我的HTML图像未显示?" /> </a> <a href="//m.sbmmt.com/zh/faq/1796870001.html" title="为什么我的HTML图像未显示?" class="phphistorical_Version2_mids_title">为什么我的HTML图像未显示?</a> <span class="Articlelist_txts_time">Aug 16, 2025 am 10:08 AM</span> <p class="Articlelist_txts_p">首先检查src属性路径是否正确,确保相对路径或绝对路径与HTML文件位置匹配;2.核实文件名和扩展名是否拼写正确且区分大小写;3.确认图像文件实际存在于指定目录中;4.使用合适的alt属性并确保图像格式为浏览器广泛支持的.jpg、.png、.gif或.webp;5.排除浏览器缓存问题,尝试强制刷新或直接访问图像URL;6.检查服务器权限设置,确保文件可被读取且未被屏蔽;7.验证img标签语法正确,包含正确的引号和属性顺序,最终通过浏览器开发者工具排查404错误或语法问题以确保图像正常显示。</p> </div> <div class="phphistorical_Version2_mids"> <a href="//m.sbmmt.com/zh/faq/1796868517.html" title="如何在HTML中使用地址标签" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/431/639/175521024292140.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="如何在HTML中使用地址标签" /> </a> <a href="//m.sbmmt.com/zh/faq/1796868517.html" title="如何在HTML中使用地址标签" class="phphistorical_Version2_mids_title">如何在HTML中使用地址标签</a> <span class="Articlelist_txts_time">Aug 15, 2025 am 06:24 AM</span> <p class="Articlelist_txts_p">thetagisusedtodefinecontactinformationFortheAuthororWoctOctorsection; 1.使用useItItforemail,holyshysaddress,phonenumber,orwebsiteurlwithinanarticleby;</p> </div> <div class="phphistorical_Version2_mids"> <a href="//m.sbmmt.com/zh/faq/1796869946.html" title="如何使用BDO标签覆盖HTML的文本方向" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/431/639/175530792210192.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="如何使用BDO标签覆盖HTML的文本方向" /> </a> <a href="//m.sbmmt.com/zh/faq/1796869946.html" title="如何使用BDO标签覆盖HTML的文本方向" class="phphistorical_Version2_mids_title">如何使用BDO标签覆盖HTML的文本方向</a> <span class="Articlelist_txts_time">Aug 16, 2025 am 09:32 AM</span> <p class="Articlelist_txts_p">thebdotagissusedtooverridethebrowser的sdeftTextDirectionRenderingWhenDealingWithMixedLeftleft to-rightright to-rightright to-leftText,确保correctvisaldisplaybydisplaybyforcingaspecificection asspeciforcection thedirattributewithtributewithvalues“ ltr” ltr ltr或“ rtl” as as as as as as as as derments-</p> </div> <div class="phphistorical_Version2_mids"> <a href="//m.sbmmt.com/zh/faq/1796871505.html" title="如何为html选择元素设置默认值" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/431/639/175540680466320.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="如何为html选择元素设置默认值" /> </a> <a href="//m.sbmmt.com/zh/faq/1796871505.html" title="如何为html选择元素设置默认值" class="phphistorical_Version2_mids_title">如何为html选择元素设置默认值</a> <span class="Articlelist_txts_time">Aug 17, 2025 pm 01:00 PM</span> <p class="Articlelist_txts_p">要为HTMLselect元素设置默认值,必须使用selected属性标记对应的option元素;1.将selected属性添加到希望默认选中的option上,如UnitedStates;2.确保单个select中仅有一个option带有selected属性,若有多个则以源码顺序第一个为准;3.selected属性可置于列表任意位置,不限于首个option;4.该方法适用于单选和多选select;5.若需动态设置,可用JavaScript操作value属性,如document.querySelec</p> </div> <div class="phphistorical_Version2_mids"> <a href="//m.sbmmt.com/zh/faq/1796871496.html" title="如何使用html中脚本加载的async属性" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/431/639/175540632211770.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="如何使用html中脚本加载的async属性" /> </a> <a href="//m.sbmmt.com/zh/faq/1796871496.html" title="如何使用html中脚本加载的async属性" class="phphistorical_Version2_mids_title">如何使用html中脚本加载的async属性</a> <span class="Articlelist_txts_time">Aug 17, 2025 pm 12:52 PM</span> <p class="Articlelist_txts_p">theasyncattributeinhtmlisusedtoloadandexecuteexternaljavascriptFileSsynChronChonChonChonChonChonChonChrone,browsertodownloadthescriptInparallelwithhtmlparSinghtmlparsinghthtmlparsingandexecuteItimmedimmeduponMmeduponComcompoineponcomcompoineponcomcompoineponcomcompletion</p> </div> <div class="phphistorical_Version2_mids"> <a href="//m.sbmmt.com/zh/faq/1796875836.html" title="如何以HTML5为中心?" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/431/639/175576874197097.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="如何以HTML5为中心?" /> </a> <a href="//m.sbmmt.com/zh/faq/1796875836.html" title="如何以HTML5为中心?" class="phphistorical_Version2_mids_title">如何以HTML5为中心?</a> <span class="Articlelist_txts_time">Aug 21, 2025 pm 05:32 PM</span> <p class="Articlelist_txts_p">Tocenteradivhorizo​​ntally,usemargin:0autowithadefinedwidth.2.Forhorizo​​ntalandverticalcentering,applydisplay:flexontheparentwithjustify-content:centerandalign-items:center.3.Alternatively,useCSSGridwithplace-items:centerforbothdirections.4.Asafallback,</p> </div> <div class="phphistorical_Version2_mids"> <a href="//m.sbmmt.com/zh/faq/1796869840.html" title="什么是HTML小元素" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/431/639/175530264315268.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="什么是HTML小元素" /> </a> <a href="//m.sbmmt.com/zh/faq/1796869840.html" title="什么是HTML小元素" class="phphistorical_Version2_mids_title">什么是HTML小元素</a> <span class="Articlelist_txts_time">Aug 16, 2025 am 08:04 AM</span> <p class="Articlelist_txts_p">Theelementisusedforsidecomments,fineprint,orlessimportantcontentwithsemanticmeaning,notjustvisualstyling;2.Itisappropriateforcopyrightnotices,legaldisclaimers,attributions,andlimitations;3.Itshouldnotbeusedsolelytoreducetextsize—CSSshouldhandlepresen</p> </div> <div class="phphistorical_Version2_mids"> <a href="//m.sbmmt.com/zh/faq/1796867300.html" title="如何更改HTML中无序列表的子弹样式" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/431/639/175514946265638.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="如何更改HTML中无序列表的子弹样式" /> </a> <a href="//m.sbmmt.com/zh/faq/1796867300.html" title="如何更改HTML中无序列表的子弹样式" class="phphistorical_Version2_mids_title">如何更改HTML中无序列表的子弹样式</a> <span class="Articlelist_txts_time">Aug 14, 2025 pm 01:31 PM</span> <p class="Articlelist_txts_p">可以使用CSS更改HTML列表的项目符号样式,因为HTML仅负责结构而CSS控制外观;通过list-style-type属性可设置disc、circle、square或none等内置样式,使用list-style-image可替换为自定义图片,或通过background-image和padding在li元素上更精确控制图像位置,还可利用伪元素::before结合Unicode字符或Web字体(如FontAwesome)添加自定义符号,从而实现灵活多样的列表样式设计。</p> </div> </div> <a href="//m.sbmmt.com/zh/web-designer.html" class="phpgenera_Details_mainL4_botton"> <span>See all articles</span> <img src="/static/imghw/down_right.png" alt="" /> </a> </div> </div> </div> </main> <footer> <div class="footer"> <div class="footertop"> <img src="/static/imghw/logo.png" alt=""> <p>公益在线PHP培训,帮助PHP学习者快速成长!</p> </div> <div class="footermid"> <a href="//m.sbmmt.com/zh/about/us.html">关于我们</a> <a href="//m.sbmmt.com/zh/about/disclaimer.html">免责声明</a> <a href="//m.sbmmt.com/zh/update/article_0_1.html">Sitemap</a> </div> <div class="footerbottom"> <p> © php.cn All rights reserved </p> </div> </div> </footer> <input type="hidden" id="verifycode" value="/captcha.html"> <script>layui.use(['element', 'carousel'], function () {var element = layui.element;$ = layui.jquery;var carousel = layui.carousel;carousel.render({elem: '#test1', width: '100%', height: '330px', arrow: 'always'});$.getScript('/static/js/jquery.lazyload.min.js', function () {$("img").lazyload({placeholder: "/static/images/load.jpg", effect: "fadeIn", threshold: 200, skip_invisible: false});});});</script> <script src="/static/js/common_new.js"></script> <script type="text/javascript" src="/static/js/jquery.cookie.js?1756495938"></script> <link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' 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 type="text/javascript" src="/static/js/global.min.js?5.5.53"></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> // top layui.use(function () { var util = layui.util; util.fixbar({ on: { mouseenter: function (type) { layer.tips(type, this, { tips: 4, fixed: true, }); }, mouseleave: function (type) { layer.closeAll("tips"); }, }, }); }); document.addEventListener("DOMContentLoaded", (event) => { // 定义一个函数来处理滚动链接的点击事件 function setupScrollLink(scrollLinkId, targetElementId) { const scrollLink = document.getElementById(scrollLinkId); const targetElement = document.getElementById(targetElementId); if (scrollLink && targetElement) { scrollLink.addEventListener("click", (e) => { e.preventDefault(); // 阻止默认链接行为 targetElement.scrollIntoView({ behavior: "smooth" }); // 平滑滚动到目标元素 }); } else { console.warn( `Either scroll link with ID '${scrollLinkId}' or target element with ID '${targetElementId}' not found.` ); } } // 使用该函数设置多个滚动链接 setupScrollLink("Article_Details_main1L2s_1", "article_main_title1"); setupScrollLink("Article_Details_main1L2s_2", "article_main_title2"); setupScrollLink("Article_Details_main1L2s_3", "article_main_title3"); setupScrollLink("Article_Details_main1L2s_4", "article_main_title4"); setupScrollLink("Article_Details_main1L2s_5", "article_main_title5"); setupScrollLink("Article_Details_main1L2s_6", "article_main_title6"); // 可以继续添加更多的滚动链接设置 }); window.addEventListener("scroll", function () { var fixedElement = document.getElementById("Article_Details_main1Lmain"); var scrollTop = window.scrollY || document.documentElement.scrollTop; // 兼容不同浏览器 var clientHeight = window.innerHeight || document.documentElement.clientHeight; // 视口高度 var scrollHeight = document.documentElement.scrollHeight; // 页面总高度 // 计算距离底部的距离 var distanceToBottom = scrollHeight - scrollTop - clientHeight; // 当距离底部小于或等于300px时,取消固定定位 if (distanceToBottom <= 980) { fixedElement.classList.remove("Article_Details_main1Lmain"); fixedElement.classList.add("Article_Details_main1Lmain_relative"); } else { // 否则,保持固定定位 fixedElement.classList.remove("Article_Details_main1Lmain_relative"); fixedElement.classList.add("Article_Details_main1Lmain"); } }); </script> <script> document.addEventListener('DOMContentLoaded', function() { const mainNav = document.querySelector('.Article_Details_main1Lmain'); const header = document.querySelector('header'); if (mainNav) { window.addEventListener('scroll', function() { const scrollPosition = window.scrollY; if (scrollPosition > 84) { mainNav.classList.add('fixed'); } else { mainNav.classList.remove('fixed'); } }); } }); </script> </body> </html><script defer src="https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon='{"version":"2024.11.0","token":"8c758bee214b4fe0858e454e5edf6f97","r":1,"server_timing":{"name":{"cfCacheStatus":true,"cfEdge":true,"cfExtPri":true,"cfL4":true,"cfOrigin":true,"cfSpeedBrain":true},"location_startswith":null}}' crossorigin="anonymous"></script> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'976e793e1cd4eacf',t:'MTc1NjQ5NTkzOA=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>