简体   繁体   English

更新的链接文件未与网页连接

[英]Updated linked files not connecting with web page

In the head of my web page html document I have linked CSS and JavaScript files for the functionality and aesthetics of my page. 在网页html文档的开头,我链接了CSS和JavaScript文件以实现页面的功能和美观。 They seemed to work fine, until I updated a JS file and it did not affect my page. 在我更新JS文件并且它不影响我的页面之前,它们似乎工作正常。 Out of frustration, I eventually just added the script to the bottom of the page as part of script tags and forgot about it. 出于无奈,我最终只是将脚本作为脚本标签的一部分添加到了页面的底部,并忘记了它。 However, when I wanted to update some CSS files, the same thing happened. 但是,当我想更新一些CSS文件时,发生了同样的事情。

I am using xampp and Sublime text 3 as text editor. 我正在使用xampp和Sublime text 3作为文本编辑器。 I have triple checked the file locations and directories and they all match up. 我已经三重检查了文件位置和目录,它们都匹配。 I cant think of any other issue that could cause this. 我想不出任何其他可能导致此的问题。 Does anybody have any ideas? 有人有什么想法吗? At the bottom I have attached an example of the head tags. 在底部,我附加了head标签的示例。

<head>
  <meta charset="UTF-8">
  <meta http-equiv="refresh" content="30" >
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  <link rel="stylesheet" type="text/css" href="../css/page_layout.css">
  <link rel="stylesheet" type="text/css" href="../css/top_nav.css">
  <link rel="stylesheet" type="text/css" href="../css/buttons.css">
  <link rel="stylesheet" type="text/css" href="../css/tables.css">
  <link rel="stylesheet" type="text/css" href="../css/side_nav.css">
  <link rel="stylesheet" type="text/css" href="../css/modal.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="../java_script/top_nav.js"></script>
</head>

There is a bug with Sublime Text 3, not any directory issues. Sublime Text 3有一个bug,没有任何目录问题。 Somehow it does not update and link files as it should. 它不以某种方式不会更新和链接文件。 Once I close and reopen ST3, the changes show. 关闭并重新打开ST3后,将显示更改。 I am considering using another text editor if this issue continues. 如果这个问题仍然存在,我正在考虑使用另一个文本编辑器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM