Firebug - 查找代码后面的 HTML 文件
我在几个论坛上看到我的问题,但没有明确的答案。
在左侧窗格中查看 HTML 代码时,我发现需要编辑的代码,但找不到包含此代码的文件,因此我可以进行必要的更改。是否可以找到HTML文件的路径,或者firebug的HTML功能只是为了娱乐? :)
谢谢大家!
吉姆
I have seen my question asked on several forums with no clear answers.
When viewing HTML code in the left pane and I spot the code that needs editing I cannot find the file that contains this code so I can make the necessary changes. Is it possible to find the path of the HTML file, or is the HTML feature of firebug just for entertainment? :)
Thanks guys!
Jim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,您无法找到文件所在的路径,在许多情况下,它位于服务器上而不是您的计算机上。
No, you can not find the path where the file is located, in many cases it will be on a server and not your computer.
你在 Firefox 中看到的所有内容都被解释为 DOM。
右键单击您感兴趣的部分并单击检查并对 DOM 进行修改。
您无法访问服务器管理的文件路径。
例如,在php中没有html文件,而是*.php文件,该文件将由服务器转换为HTML并发送给客户端。
Everything you see in firefox is interpreted as DOM.
Right click and click inspect on the part you interested and make modification to the DOM.
There is no way you can have access to the file path, which server manages.
For example, in php there is no html file but *.php file which would be translated to HTML by server and sent to client.