Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开发了一个托管在 tomcat 上的小型演示网络应用程序。当我从本地主机访问此应用程序时,一切正常。但是当我尝试使用我机器的 IP 从其他计算机访问它时,我可以看到网页,但 CSS 没有按预期工作(html 实体不在那里)。
我正在使用 HTML5 和外部样式表来显示网页。
我试图找出解决方案,但没有找到。我真的很感谢你们在这方面的帮助。
提前致谢。
您可以像这样设置您的 CSS 路径,例如,
<link rel="stylesheet" type="text/css" href="/FOLDER/style.css">
而不是http://localhost/简单地使用/
http://localhost/
/