Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 将CSS文件作为内联样式包含在JSP中_Html_Css_Jsp_Jsp Tags_Jspinclude - Fatal编程技术网

Html 将CSS文件作为内联样式包含在JSP中

Html 将CSS文件作为内联样式包含在JSP中,html,css,jsp,jsp-tags,jspinclude,Html,Css,Jsp,Jsp Tags,Jspinclude,我有一个CSS文件(“style.CSS”),我想将它作为内联CSS嵌入到JSP中。如何做到这一点 我尝试了以下操作,但未导入CSS文件: <style> <jsp:include page="style.css" /> </style> 谢谢 这类指令应该有效,但您需要确定所使用的路径: <%@ include file="/path_to/your_css_file.css" %> Ah我看到您使用的代码已经更新。不要引用我的话,但

我有一个CSS文件(“style.CSS”),我想将它作为内联CSS嵌入到JSP中。如何做到这一点

我尝试了以下操作,但未导入CSS文件:

<style>
  <jsp:include page="style.css" />
</style>

谢谢

这类指令应该有效,但您需要确定所使用的路径:

<%@ include file="/path_to/your_css_file.css" %>

Ah我看到您使用的代码已经更新。不要引用我的话,但我认为
只适用于其他JSP文件。