css

1.js编码和解码

encodeURIComponent() 编码

decodeURIComponent() 解码

2.背景图

background-size:100%100%;

background-repeat: no-repeat;

3.加下划线/中划线

text-decoration: underline; 下

text-decoration:line-through;中

4.去滚动条

::-webkit-scrollbar{

  width: 0;

  height: 0;

  color: transparent;

  }

5.子元素在绝对定位中居中显示

position: absolute;

    left: 50%;

    top: 50%;

    transform: translate(-50%, -50%);

6.超出部分显示省略号

overflow:hidden;

text-overflow:ellipsis;

white-space:nowrap;

display:-webkit-box;

-webkit-box-orient:vertical;

-webkit-line-clamp:3;

overflow:hidden;

7.变大

transform: scale(1.2);

你可能感兴趣的:(css)