简体   繁体   English

在Windows下的Eclipse中无法返回目录

[英]Moving back in dir not working in Eclipse under windows

In one of my Eclipse projects in WebContent section I have two folders one called "assets" and one called "dashboard". 在WebContent部分的Eclipse项目之一中,我有两个文件夹,一个称为“资产”,一个名为“仪表板”。 "Dashboard" contains a file errorlogs.html that calls css file in "assets". “仪表板”包含一个文件errorlogs.html,该文件在“资产”中调用css文件。 So I have to go back one dir and the get to assets, I'm usign href to do this but for some reason I cannot apply the css. 因此,我必须返回一个目录并获取资产,我很乐于执行此操作,但是由于某些原因,我无法应用CSS。 Here's my code in dashboard: 这是我在仪表板中的代码:

<link rel="stylesheet" type'text/css" href="../assets/css/styles_main.css"/>

The only think I could think of is the problem has to do with using Eclipse and Windows7 since this works fine on Linux. 我唯一能想到的是问题与使用Eclipse和Windows7有关,因为这在Linux上可以正常工作。 Is there another syntax for doing this in Windows using Eclipse? 在Windows中使用Eclipse执行此操作还有其他语法吗?

<link> is a void element.It has no closing tag. <link>是一个void元素,没有结束标记。 try this: 尝试这个:

<link rel="stylesheet" type'text/css" href="../assets/css/styles_main.css">

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

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