1.input框里面的placeholder文字字体大小修改
input {
background-color:transparent;
font-size: (13 / @baseSize);
padding:(13 / @baseSize) (18 / @baseSize) ;
height: (38 / @baseSize);
border-radius: (18 / @baseSize);
border: solid (1 / @baseSize) #fff;
&::-webkit-input-placeholder {
color: #fff;
}
}
2.文字换行省略号
1.文字换行需要给当前p标签盒子设置宽度
2.设置隐藏
3.添加文本溢出省略
&:nth-child(3) {
width: (200 / @baseSize);
// 隐藏换行需要设置宽度
overflow:hidden;
white-space:nowrap;
text-overflow:ellipsis;
}
3.背景图固定 background: fixed;
背景图固定后放大缩小背景图不会改变