我有以下html:
<span wicket:id="votevaluenotifier">
<label name="currentVoteValue" id="currentVoteValue" wicket:id="currentVoteValue" />%
</span>
我试图样式的结果在CSS使用:
.currentVoteValue
{color:#CC3300;
}
但没有快乐。我知道我错过了一些明显的东西,但是什么?我尝试使用votevaluenotifier而不是currentVoteValue,但没有成功。
抱歉-我是一个CSS新手。
我不知道,但是如果你有
<label id="currentVoteValue">
你应该使用
#currentVoteValue {
color:#CC3300;
}
因为#
开始一个ID选择器而.
开始一个类选择器