-2
我有幾個在JSP標籤,如下轉換JSP的風格標籤爲CSS條目
<style type="text/css">
#mask {
display: none;
cursor: wait;
z-index: 99999;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-color: white;
filter: alpha(opacity=70);
}
</style>
<div id="mask">
<div style="position: absolute; top : 300px; left : 550px; text-align : center; vertical-align: middle;font-family: arial,helvetica,verdana,sans-serif; color : red; font-size : 16px; font-weight : bold; text-decoration: underline;">
<img src="<%=request.getContextPath()%>/images/progress.gif" />
<br/>loading
</div>
</div>
當我試圖把它們作爲CSS項目,我沒有得到正確的輸出。
.busyDiv {
position: absolute;
top: 300px;
left: 550px;
text-align: center;
vertical-align: middle;
font-family: arial, helvetica, verdana, sans - serif;
color: red;
font-size: 16px;
font-weight: bold;
text-decoration: underline;
}
.busyStyle {
display: none;
cursor: wait;
z-index: 99999;
position: absolute;
top: 0;
left: 0;
height: 100 % ;
width: 100 % ;
background-color: white;
filter: alpha(opacity = 70);
}
我把他們當作
<style type="text/css" class="busyStyle">
#mask {}
</style>
<div id="mask">
<div class="busyDiv">
<img src="<%=request.getContextPath()%>/images/progress.gif" />
<br/>loading
</div>
</div>
當我使用上述CSS項,如預期的功能不工作?
我錯過了什麼嗎? (它的工作原理,當我把這些標籤,JSP,因爲他們,但我想的樣式分成CSS項)
不要上課你的樣式表,class class div class =「busyStyle」' – briansol 2014-09-12 15:09:06
試過這個,但我的gif沒有顯示,因爲我在css條目中定義了「busyDiv」 – Techie 2014-09-12 15:19:08
div應該歸類作爲「busyDiv」的權利?爲什麼「busyStyle」? – Techie 2014-09-12 15:19:42