在netbiscuits JSP上实现CSS

Implementing CSS on netbiscuits JSP

本文关键字:实现 CSS JSP netbiscuits      更新时间:2023-09-26

我只是想在我的JSP上实现CSS,其中包含了net-biscuits的代码。我直接从<FORM>标记开始编写JSP代码。我写:

 Some code -----
<span class="cart_bubble"><bean:write name="keywordform" property="cartvalue"/></span>
 Some code -----

但是我看不到这个页面上的CSS,虽然我从bean中获取值。

CSS是:

.cart_bubble{
position: absolute;
right: 0px;
top: 0px;
padding: 5px;
width: auto;
background: -moz-linear-gradient(10% 64% 90deg,#AE1321, #FC7C4A);
background: -webkit-gradient(linear, 0% 0%, 0% 37%, from(#FC7C4A), to(#AE1321));
color: white;
line-height: 4px;
font-size: 11px;
font-weight: bold;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
cursor: pointer;
border: 0px solid white;
-moz-box-shadow: 1px 2px 2px #9a9b9b;
-webkit-box-shadow: 1px 2px 2px #9a9b9b;
margin: -3px 0px 0px -3px;
}

请建议一个解决我问题的方法。

首先你需要使用外部标签包括CSS文件,像这样:

(外部文件="your.css"/)

,然后在你的表单中引用样式:

[形式类= " cart_bubble "]