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);

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容