想要下图这样的每行之间能够进行交替进行。
这样需要List容器中 设置三个属性: list的背景色,交替属性及 子项的背景色:bkcolor="ffffffff" itemaltbk="true" itembkcolor="#ffc0c0c0"
<List name="userlist" padding="5,5,0,0" width="550" height="260" itemtextcolor="ff048ae0" bkcolor="ffffffff" itemaltbk="true" itembkcolor="#ffc0c0c0" itemshowhtml="true" sepheight="5" itemfont="1" inset="1,1,1,1" bordercolor="#FF1B4876" bordersize="1" itemalign="center" vscrollbar="true" hscrollbar="true" >
<ListHeaderItem text="序号" width="100" font="2" textcolor="ff048ae0" /> <!-- textcolor是设置表头的颜色 -->
<ListHeaderItem text="姓名" width="150" font="2" textcolor="ff048ae0" />
<ListHeaderItem text="性别" width="100" font="2" textcolor="ff048ae0" />
<ListHeaderItem text="专业" width="100" font="3" textcolor="ff048ae0" />
</List>