简体   繁体   English

如何在Firefox检查器工具中插入HTML元素?

[英]How do I insert an HTML element in the Firefox inspector tool?

I need to be able insert new HTML elements in Firefox Inspector Tool, but I can't find any way. 我需要能够在Firefox Inspector Tool中插入新的HTML元素,但找不到任何方法。

This is a similar question but it asks about the Google Chrome inspector. 是一个类似的问题,但它询问有关Google Chrome检查器的问题。

If you are using the inspector tool, go to the inspector tab, right click anywhere in the page where you want to inspect and choose Inspect Element, an icon will appear on the page on that element, click on that icon and you will find "Edit as HTML". 如果您使用的是检查器工具,请转到“检查器”选项卡,右键单击页面中要检查的任何位置,然后选择“检查元素”,该元素的页面上将出现一个图标,单击该图标,您会发现“编辑为HTML”。 Attached is a screenshot. 附件是屏幕截图。 在此处输入图片说明

Hope this helps. 希望这可以帮助。

you can right-click and edit the inner html. 您可以右键单击并编辑内部html。 this is because the browser cannot know beforehand what kind of item you want to add. 这是因为浏览器无法事先知道要添加哪种项目。 so the option they leave is edit html. 因此,他们留下的选项是编辑html。

sorry... the answer is quite a duplicate of the answer you left for chrome. 抱歉...答案与您为Chrome留下的答案完全相同。 but AFAIK is the annoying truth. 但是AFAIK是令人讨厌的事实。

You need to right click on the parent element and select EDIT HTML. 您需要右键单击父元素,然后选择“编辑HTML”。 This will let you type freely, and you can add any tags you wish inside. 这样您就可以自由键入,也可以在其中添加任何标签。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Google Chrome 检查器中插入 HTML 元素? - How do I insert an HTML element in the Google Chrome inspector? 如何使用Firebug或Firefox DevTools的检查器仅查看一个元素? - How do I use Firebug's or Firefox DevTools' inspector to view just one element? 在Firefox中的检查器中查看时,HTML div元素覆盖整个表单 - HTML div element covering whole form when viewed in inspector in firefox 如何将字符串转换为 html 并插入到某个 dom 元素中? - How do I convert string to html and insert into certain dom element? 如何防止用户使用检查器工具更改表单值或删除输入字段元素? - How do I prevent users from changing form values or removing input fields elements using inspector tool? Firefox HTML检查器:如何复制单个HTML标签? - Firefox HTML inspector: how to copy single HTML tag? 如何在 Firefox 代码检查器中搜索标签并排除简单文本结果? - How do I search Firefox code inspector for tags and exclude simple text results? Chrome / Firefox检查器可以编辑HTML - Chrome / Firefox inspector to edit HTML 如何在HTML Mozilla Firefox中将HTML“legend”元素设置为表格单元格? - How do I style an HTML `legend` element as a table cell in Mozilla Firefox? 我在HTML元素检查器中看到的:: before和:: after是什么? - What's the ::before and ::after that I see in the HTML element inspector?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM