css单双行样式

#random_box li:nth-child(odd) {//双行
            background: #fff5c4;
        }

        #random_box li:nth-child(even) {//单行
            background: #ffeb8c;
        }
posted @ 2016-08-18 18:30  chenjingchun  阅读(3805)  评论(1)    收藏  举报