为什么css文件不影响使用socket制作的python服务器发送的sylinghtml文件?

2024-04-24 09:19:56 发布

您现在位置:Python中文网/ 问答频道 /正文

我有使用套接字的python服务器。代码可以在这里找到https://github.com/aminabcd/python-server/blob/master/new.py,可以在https://github.com/aminabcd/python-server/blob/master/login.htmlhttps://github.com/aminabcd/python-server/blob/master/login.css处找到html文件和css文件。

当从本地计算机打开html文件时,页面看起来像 enter image description here 但是当它从python服务器上提供时,它看起来像 enter image description here firebug捕获的头如下 enter image description hereenter image description here

现在,我的问题是,为什么css文件在从python服务器服务时对html文件没有影响?


Tags: 文件代码pyhttpsgithubmaster服务器com