简体   繁体   中英

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". "Dashboard" contains a file errorlogs.html that calls css file in "assets". 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. 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. Is there another syntax for doing this in Windows using Eclipse?

<link> is a void element.It has no closing tag. try this:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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