直接看代码吧:
@for((product,index) <- prolist.zipWithIndex){
@if((index+1)%4 == 0){
<div class="queen-good-container" style="margin-right:0px;">
}else{
<div class="queen-good-container" >
}
}