.css文件不会更新

编程入门 行业动态 更新时间:2024-10-25 12:18:56
本文介绍了.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文件不会更新

本文发布于:2023-11-07 17:45:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1567040.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   css

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!