.css文件不会更新 [英] .css file won't updoad

查看:61
本文介绍了.css文件不会更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试上传我们的网站以及除.css文件以外的所有内容。我尝试手动将.css文件上传到FTP站点。我能够上传它,但当我回到我的网站时,.css文件并没有生效。有什么想法为什么.css文件不起作用?这就是我所拥有的代码...


< link href =" ../ css / style.css"的rel ="样式表"类型= QUOT;文本/ CSS"媒体= QUOT;屏幕" />

< style type =" text / css">


我的.css文件位于名为css的文件夹中;。 .css文件的标题为style.css。


任何建议都将不胜感激!!!


谢谢,


泰勒奥尔森

I tried uploading our website and everything loaded except the .css file. I tried uploading the .css file to the FTP site manually. I was able to upload it but when i went back to my website, the .css file didn''t take effect. Any ideas why the .css file isn''t working? Here''s what i have as the code...

<link href="../css/style.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">

I have the .css file located in a folder called "css". The .css file is titled "style.css".

Any suggestions would be greatly appreciated!!!

Thanks,

Tyler Olson

推荐答案

他们倾向于缓存 - 尝试清空浏览器缓存。
They tend to get cached - try emptying your browser cache.


@Christopher Nigro

克里斯,谢谢你的快速回复!我试图清空我的浏览器缓存,但是没有用。这是我在Dreamweaver中尝试将其上传到我的FTP站点时收到的消息。

css \style.css - 发生错误 - 发生FTP错误 - 无法放入style.css。拒绝访问。该文件可能不存在,或者可能存在权限问题。

style.css - 执行操作成功


文件活动不完整。 1个文件或文件夹未完成。

文件已更新:1

文件已跳过:46


有错误的文件:1

css \style.css



即使我手动加载css文件格式化也不行。可能会发生什么其他想法?
@Christopher Nigro
Chris, thanks for your quick response! I tried emptying my browser cache and that didn''t work. Here is the message i get in Dreamweaver when i try uploading it to my FTP site.

css\style.css - error occurred - An FTP error occurred - cannot put style.css. Access Denied. The file may not exist, or there could be a permission problem.
style.css - Put operation successful

File activity incomplete. 1 file(s) or folder(s) were not completed.
Files updated: 1
Files skipped: 46

Files with errors: 1
css\style.css


Even when i manually load the css file the formatting isn''t working. Any other ideas what could be going on?


看起来你没有CSS目录的写权限。
Looks like you don''t have write permissions on the CSS directory.


这篇关于.css文件不会更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆