尝试确定在部署到Tomcat 6的Web应用程序中放置样式表的位置/方式,以便可以解析styles.css.我已经尝试过所有我能想到但没有成功的事情.
我做了这些测试,试图把文件放进去,但很少有人成功.
1.) put css in-line with style attribute to verify text display green.
<div id="xxx" style="color:green;"> This worked.
Then I removed the attribute and
2.) moved it into a in-file <style></style> stmt in the jsp. This also worked.
I copied the css stmt into styles.css and disabled the in-line stmt in the jsp.
3.) added <link></link> stmts to file. I tried several path refs to the file.
And I put the file in several different directory locations to …Run Code Online (Sandbox Code Playgroud)