原创 怎么样查看网页的HTML源代码?这儿供给仔细过程
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">每一个</span><span style="color: black;">重点</span>的互联网浏览器都<span style="color: black;">准许</span>用户查看任何网页的HTML(超文本标记语言)源代码。以下部分<span style="color: black;">包括</span><span style="color: black;">相关</span>在<span style="color: black;">每一个</span><span style="color: black;">重点</span>浏览器中查看源代码的多种<span style="color: black;">办法</span>的信息。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;"><strong style="color: blue;">引言</strong></h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">查看网页的源代码时,服务器处理的信息和代码不会<span style="color: black;">显现</span>。例如,搜索引擎处理服务器上的信息,<span style="color: black;">而后</span>在网页上<span style="color: black;">表示</span>结果。换句话说,你<span style="color: black;">能够</span>查看<span style="color: black;">构成</span>结果页面的代码,但<span style="color: black;">不可</span>查看搜索引擎的源代码。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">此规则适用于所有服务器端脚本、SSI(服务器端<span style="color: black;">包括</span>)和编程代码。<span style="color: black;">因此呢</span>,你<span style="color: black;">没</span>法查看搜索引擎、论坛、投票、聊天等中<span style="color: black;">运用</span>的脚本源代码。<span style="color: black;">另外</span>,从源代码复制信息可能会<span style="color: black;">引起</span>错误,或将你引导回从中复制信息的页面。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;"><strong style="color: blue;">谷歌浏览器</strong></h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">要在Google Chrome中查看网页的源代码,请<span style="color: black;">运用</span>以下任一<span style="color: black;">办法</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">仅查看源代码</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">办法</span>一</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">要仅查看源代码,请按计算机键盘上的键盘快捷键Ctrl+U。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">办法</span>二</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">右键单击网页的空白部分,<span style="color: black;">而后</span>从弹出菜单中<span style="color: black;">选取</span>“查看网页源代码”。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q4.itc.cn/images01/20240331/1793909d31ca4f4590552cdafe25867c.png" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">查看<span style="color: black;">包括</span>元素的源代码</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1、打开Chrome并导航要查看其源代码的网页。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2、单击浏览器窗口右上角的设置图标。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3、从下拉菜单中,<span style="color: black;">选取</span><span style="color: black;">更加多</span><span style="color: black;">工具</span>,<span style="color: black;">而后</span><span style="color: black;">选取</span><span style="color: black;">研发</span>者<span style="color: black;">工具</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4、单击屏幕底部左上角的“元素”选项卡。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q6.itc.cn/images01/20240331/0ac06f2774634e9493b8a041d6b1a89c.png" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">提示:在Chrome中,按F12或Ctrl+Shift+I<span style="color: black;">亦</span>会打开交互式<span style="color: black;">研发</span>者<span style="color: black;">工具</span>。该<span style="color: black;">工具</span><span style="color: black;">供给</span>了与源代码和CSS设置的<span style="color: black;">更加多</span>交互,<span style="color: black;">准许</span>用户查看代码中的更改<span style="color: black;">怎样</span>立即影响网页。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;"><strong style="color: blue;">Mozilla Firefox</strong></h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">要在Mozilla Firefox中查看网页的源代码,请使用以下任一<span style="color: black;">办法</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">仅查看源代码</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">办法</span>一</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">要仅查看源代码,请按计算机键盘上的Ctrl+U。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">办法</span>二</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">右键单击网页的空白部分,<span style="color: black;">而后</span>从弹出菜单中<span style="color: black;">选取</span>“查看网页源代码”。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q5.itc.cn/images01/20240331/57c6b44024254634b26d8de46010f021.png" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">查看<span style="color: black;">包括</span>元素的源代码</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1、打开Firefox并导航到要查看其源代码的网页。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2、单击屏幕右上角的菜单Firefox菜单图标。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3、在下拉菜单中<span style="color: black;">选取</span>“<span style="color: black;">更加多</span>工具”,<span style="color: black;">而后</span>从展开的菜单中<span style="color: black;">选取</span>“Web<span style="color: black;">研发</span>者<span style="color: black;">工具</span>”。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4、单击屏幕底部部分左上角的“查看器”选项卡。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q7.itc.cn/images01/20240331/cd248a404ebd482fbfdf02dbd8369b19.png" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">提示:在Firefox中,按F12或Ctrl+Shift+I<span style="color: black;">亦</span>会打开交互式<span style="color: black;">研发</span>者<span style="color: black;">工具</span>。该<span style="color: black;">工具</span><span style="color: black;">供给</span>与源代码和CSS设置的交互,<span style="color: black;">准许</span>用户实时查看代码中的更改<span style="color: black;">怎样</span>影响网页。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">查看网页源代码的一部分</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1、<span style="color: black;">明显</span><span style="color: black;">表示</span>网页中要查看源代码的部分。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2、在高亮<span style="color: black;">表示</span>的部分上单击鼠标右键,<span style="color: black;">而后</span><span style="color: black;">选取</span>“查看选中部分源代码”。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">提示:你<span style="color: black;">能够</span><span style="color: black;">运用</span>Firebug插件查看和编辑页面的源代码,并<span style="color: black;">经过</span>浏览器实时查看更改。</strong></p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;"><strong style="color: blue;">Microsoft Edge</strong></h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">要在Microsoft Edge中查看网页的源代码,请<span style="color: black;">运用</span>以下任一<span style="color: black;">办法</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">仅查看源代码</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">办法</span>一</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">要仅查看源代码,请按计算机键盘上的Ctrl+U。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">办法</span>二</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">右键单击网页的空白部分,<span style="color: black;">而后</span>从弹出菜单中<span style="color: black;">选取</span>“查看网页源代码”。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q8.itc.cn/images01/20240331/9092931e9e094b088ef13fff2a3be2ef.png" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">查看<span style="color: black;">包括</span>元素的源代码</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1、打开Microsoft Edge并导航到要查看其源代码的网页。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2、单击屏幕右上角的设置图标。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3、将鼠标移到下拉菜单中的“<span style="color: black;">更加多</span><span style="color: black;">工具</span>”上,<span style="color: black;">而后</span>从展开的菜单中<span style="color: black;">选取</span>“<span style="color: black;">研发</span>人员<span style="color: black;">工具</span>”。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4、单击屏幕右侧窗口顶部的“元素”选项卡。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q2.itc.cn/images01/20240331/2f7a593907a7452787f65b64f4c61bc0.png" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">提示:在Microsoft Edge中,按F12或Ctrl+Shift+I<span style="color: black;">亦</span>会<span style="color: black;">表示</span>交互式<span style="color: black;">研发</span>人员<span style="color: black;">工具</span>。该<span style="color: black;">工具</span><span style="color: black;">供给</span>与源代码和CSS设置的交互,<span style="color: black;">准许</span>用户实时查看代码中的更改<span style="color: black;">怎样</span>影响网页。</p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;"><strong style="color: blue;">Microsoft Internet Explorer</strong></h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">要在Microsoft Internet Explorer中查看网页的源代码,请<span style="color: black;">运用</span>以下任一<span style="color: black;">办法</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">仅查看源代码</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">办法</span>一</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">要仅查看源代码,请按计算机键盘上的Ctrl+U。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">办法</span>二</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">右键单击网页的空白部分,<span style="color: black;">而后</span>从弹出菜单中<span style="color: black;">选取</span>“查看源”。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q1.itc.cn/images01/20240331/7b6678561186429ba4e8d482d4ef0815.png" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">查看<span style="color: black;">包括</span>元素的源代码</strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1、打开Internet Explorer并导航到要查看其源代码的网页。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2、单击右上角的<span style="color: black;">工具</span>Internet explorer<span style="color: black;">工具</span>图标。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3、从下拉菜单中<span style="color: black;">选取</span>“F12<span style="color: black;">研发</span>人员<span style="color: black;">工具</span>”。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4、单击<span style="color: black;">研发</span>人员<span style="color: black;">工具</span>菜单左上角的“DOM资源管理器”选项卡。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q9.itc.cn/images01/20240331/8c867121693f4d4bb30cb21ff1afa222.png" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">提示:在Internet Explorer中,按F12键将<span style="color: black;">表示</span>DOM<span style="color: black;">工具</span>。该<span style="color: black;">工具</span><span style="color: black;">供给</span>与源代码和CSS设置的交互,<span style="color: black;">准许</span>用户查看代码中的更改<span style="color: black;">怎样</span>立即影响网页。</strong><a style="color: black;"><span style="color: black;">返回<span style="color: black;">外链论坛:http://www.fok120.com/</span>,查看<span style="color: black;">更加多</span></span></a></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">责任编辑:网友投稿</span></p>
期待与你深入交流,共探知识的无穷魅力。
页:
[1]