我有以下代码:
HTML
<ul class=sticky>
<li>
text1
</li>
<li>
text 2
</li>
</ul>
CSS
.sticky ul li:nth-child(even) a {
-o-transform: rotate(4deg);
-webkit-transform: rotate(4deg);
-moz-transform: rotate(4deg);
position: relative;
top: 5px;
background: #cfc;
}
.sticky ul li:nth-child(3n) a {
-o-transform: rotate(-3deg);
-webkit-transform: rotate(-3deg);
-moz-transform: rotate(-3deg);
position: relative;
top: -5px;
}
但它不起作用..请帮我纠正它。提前致谢
上面代码的 jsfiddle http://jsfiddle.net/cZRg6/