初学者,我无法在网络浏览器中打开我的 hTML/CSS 代码

问题描述 投票:0回答:2

当我想调试我的代码以在 chrome 上显示它时,我收到一条错误消息“localhost拒绝连接”,我不知道该怎么办,这对我来说很新。

我安装了一个名为“JavaScript Debugger”的 Chrome 调试器,我以为修正会是自动的,但我什么也没做。

我还尝试添加配置“chrome”“附加到chrome”,但我只收到错误消息“无法连接到 localhost:9222:Could debug target at http://localhost:8080:Could not find any debuggable目标。

css json debugging
2个回答
0
投票

如果只是 HTML 和 CSS(无框架/服务器),您可以在 chrome 中打开 HTML 文件。

Windows:右键单击 html 文件,然后使用 -> Chrome 或其他浏览器打开。 您还可以将 Chrome 设为 .html 文件的默认应用程序


0
投票

只需打开 HTML 页面。 双击您的 html 页面,它将在浏览器中打开。

© www.soinside.com 2019 - 2024. All rights reserved.