CSS技巧

一、奇偶数不同样式

css样式代码:

.nub{ font-size:30px; font-weight:700; color:#30F}
.nub:nth-of-type(2n){ color:#900}


01
02
03
04
05
06
07
08
09

效果:CSS技巧_第1张图片

二、文字缩略设置

1、单行文字缩略

css样式代码:

你可能感兴趣的:(web前端,CSS,css)