Home  >  Article  >  Backend Development  >  为什么网页上传到服务器上后再打开css样式就不能用了?

为什么网页上传到服务器上后再打开css样式就不能用了?

WBOY
WBOYOriginal
2016-06-06 20:15:331826browse

为什么网页上传到服务器上后再打开css样式就不能用了?
而在本地却是正常的。服务器是centos7,lmap

http://120.25.167.42/register.php

回复内容:

为什么网页上传到服务器上后再打开css样式就不能用了?
而在本地却是正常的。服务器是centos7,lmap

http://120.25.167.42/register.php

为什么网页上传到服务器上后再打开css样式就不能用了?

我看到你的页面的样式生效了呀,怎么说

一般来说是文件路径问题,看看http状态码有没有返回404的。

应该是浏览器缓存的问题,请查看http返回是200,还是304. You need 200!

linux系统是区分文件名大小写的,是不是引用的时候名字写的有错。

你反键查看网页源代码,看下css文件路径是否正确

加上
搞定

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn