简体   繁体   中英

Where should I put my css file in Intellij IDEA

I am writing a very simple web application project by " IntelliJ IDEA " and " Tomcat ". I downloaded and HTML file and pasted it into my index.jsp, this HTML also has a css file, but I do not know where to put it.

you can put css anywhere in project . All you need to select correct path in href .

<head>
<link rel="stylesheet" type="text/css" href="path_to_css/xyz.css">
</head>

you can put css and html in same directory. then use

 <head>
<link rel="stylesheet" type="text/css" href="xyz.css">
</head>

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