原帖由
hk2 於 2008-9-4 03:44 發表

即係投票個條顯示有幾多人投左票個幅圖..
各位大大幫幫手
如果你要改個d color, 方法如下
打開 styles/prosilver/theme/colours.css
尋找
.pollbar1 {
background-color: #AA2346;
border-bottom-color: #74162C;
border-right-color: #74162C;
}
.rtl .pollbar1 {
border-left-color: #74162C;
}
.pollbar2 {
background-color: #BE1E4A;
border-bottom-color: #8C1C38;
border-right-color: #8C1C38;
}
.rtl .pollbar2 {
border-left-color: #8C1C38;
}
.pollbar3 {
background-color: #D11A4E;
border-bottom-color: #AA2346;
border-right-color: #AA2346;
}
.rtl .pollbar3 {
border-left-color: #AA2346;
}
.pollbar4 {
background-color: #E41653;
border-bottom-color: #BE1E4A;
border-right-color: #BE1E4A;
}
.rtl .pollbar4 {
border-left-color: #BE1E4A;
}
.pollbar5 {
background-color: #F81157;
border-bottom-color: #D11A4E;
border-right-color: #D11A4E;
}
.rtl .pollbar5 {
border-left-color: #D11A4E;
}
這裡的css寫法, 意思是
若某項的投票人數 = 0, 指定的投票Bar 的Color由.pollbar1和.rtl .pollbar1指定
若某項的投票人數 = 1, 指定的投票Bar 的Color由.pollbar1和.rtl .pollbar1指定
若某項的投票人數 = 2, 指定的投票Bar 的Color由.pollbar2和.rtl .pollbar2指定
若某項的投票人數 = 3, 指定的投票Bar 的Color由.pollbar3和.rtl .pollbar3指定
若某項的投票人數 = 4, 指定的投票Bar 的Color由.pollbar4和.rtl .pollbar4指定
若某項的投票人數 >= 5, 指定的投票Bar 的Color由.pollbar5和.rtl .pollbar5指定
所以, 如果你改成我這樣子, 你會發現有不同的color喔
.pollbar1 {
background-color: #33CC00;
border-bottom-color: #33CC00;
border-right-color: #33CC00;
}
.rtl .pollbar1 {
border-left-color: #33CC00;
}
.pollbar2 {
background-color: #F500F5;
border-bottom-color: #F500F5;
border-right-color: #F500F5;
}
.rtl .pollbar2 {
border-left-color: #F500F5;
}
.pollbar3 {
background-color: #FF470A;
border-bottom-color: #FF470A;
border-right-color: #FF470A;
}
.rtl .pollbar3 {
border-left-color: #FF470A;
}
.pollbar4 {
background-color: #3399FF;
border-bottom-color: #3399FF;
border-right-color: #3399FF;
}
.rtl .pollbar4 {
border-left-color: #3399FF;
}
.pollbar5 {
background-color: #3333FF;
border-bottom-color: #3333FF;
border-right-color: #3333FF;
}
.rtl .pollbar5 {
border-left-color: #3333FF;
}