css - why css file was damaged on server
问题描述
I have a problem with my style.css file.
after i published it on plesk server, it worked fine. but some times, (such as when press Ctrl+F5 ) or simple refresh, it's content is unreadable.
I attach an screenshot .
how to fix it?
解决方案
It could be a encoding mismatch. Make sure that the client and server are using UTF-8 to encode the file. If that does not work it might be a error while sending/receiving the file. If you are on Chrome, use the network tab in the Chrome dev tools to check that out.
推荐阅读
- python - Python底图与散布纬度/经度不匹配
- python - Python 只写第一行
- vba - 填充由 3 个组合框过滤的表格中的文本框
- c# - 如何从 sql 查询结果中创建一个数组?
- c - Bresenham 3D 线算法功能不适用于用于 led 立方体的 arduino
- typescript - 为什么即使在定义了 PNG 类型之后,我仍会从 TypeScript for PNG 文件中收到 Module Not Found 错误?
- reactjs - Reactjs:useState 无法更新
- django - 如何使用突变一次更新一个字段?石墨烯-django
- javascript - Jquery - 获取空格后单词的第一个字符
- c - K&R C 编程语言练习 1-16