css单双行样式

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

        #random_box li:nth-child(even) {//单行
            background: #ffeb8c;
        }
原文地址:https://www.cnblogs.com/Jerrycjc/p/5785003.html