一个简单程序对照

/text-indent:2em; 表示这就是首行缩进2字符 css 有意思的东西
u 用text-decoration:underline; 表示下划线
* public static int maxProducts(int vip){
int productShowCount = 5;//默认显示商户5个产品
if(vip != 0){
if(vip == 1)
productShowCount = 10;
else if(vip == 2)
productShowCount = 20;
else if(vip == 3)
productShowCount = 30;
else if(vip == 4)
productShowCount = 50;
else
productShowCount = 10 * vip;
}
return productShowCount;
}*/
/*
* @remarks 为了重新定义企业的vip 规则
* @author 2010-02-27 yanming update
*/
public static int maxProducts(int vip){
int productShowCount = 12;//默认显示商户5个产品
switch(vip)
{
case 0:productShowCount=12;break;
case 1:productShowCount=16;break;
case 2:productShowCount=24;break;
case 3:productShowCount=32;break;
case 4:productShowCount=48;break;
default:productShowCount=12*vip;break;
}
return productShowCount;
}

你可能感兴趣的:(css)