文章目录
- iconfont
文本溢出省略
overflow:hidden; 溢出隐藏
text-overflow:eclipse; ···代替
white-space:nowarp; 溢出不换行
before after
li::after{/*after渐变线,注意格式+拼写*/
content:"";
width:1px;
height:200px;
position: absolute;
top:30px;
right:0;
}
过渡
transition:过渡效果的 CSS 属性的名称 过渡时间
0.3s线性变换-透明度0.5
div{
transition:all .3s linear; }
div;hover{
opacity: .5;}