简体   繁体   English

CSS 在 jsp 文件中没有变化

[英]CSS is not changing in jsp file

The issue is changing the styles of a page with CSS in jsp the code of linking is:问题是在 jsp 中使用 CSS 更改页面的 styles 链接代码为:

<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/Profile.css" />

This works perfectly fine at the first time and the jsp is styled with the external CSS linking but when I change something it wont appear in the browser even after clean and build for example: a div have a colour of blue and I change to red it wont show up it just shows blue instead of red.这在第一次工作得很好,jsp 采用外部 CSS 链接的样式,但是当我更改某些内容时,即使在清理和构建之后它也不会出现在浏览器中,例如:一个 div 的颜色为蓝色,我将其更改为红色不会显示它只是显示蓝色而不是红色。

The browser I'm using is Firefox developer.我使用的浏览器是 Firefox 开发者。

Is there any work around for this??有什么解决方法吗?

Thanks in advance.提前致谢。

Read the "Multiple Style Sheets" part of: www.w3schools.com/css/css_howto.asp ,Maybe it will help.阅读www.w3schools.com/css/css_howto.asp的“多个样式表”部分,也许它会有所帮助。 Otherwise we would need to see the whole code to be able to help.否则,我们需要查看整个代码才能提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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