随笔分类 - css3
新css3的属性
摘要:1.奇偶属性: /*奇数*/ ul li:nth-child(odd){ background-color: green; } /*偶数*/ ul li:nth-child(even){ background-color: red; } 2.大于某个数的选择器 li大于1的li元素的变成红色 ul
阅读全文
摘要:1.英文自动换行 .css{ word-wrap: break-word; word-break: normal; } 2.强制英文单词断行 .css{word-break:break-all; } 3.一行文字超出,出现省略号 css{ } 4.三行文字超出,出现省略号 css{ }
阅读全文

浙公网安备 33010602011771号