我有一个 CSS 文件(“style.css”),我想将其作为内联 CSS 嵌入到 JSP 中。如何做到这一点?
我试过以下方法,但没有导入 CSS 文件:
<style>
<jsp:include page="style.css" />
</style>
谢谢!
最佳答案
这种指令应该有效,但您需要确定您使用的路径:
<%@ include file="/path_to/your_css_file.css" %>
关于html - 在 JSP 中包含一个 CSS 文件作为内联样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6599254/