好用的css技巧
- 滚动条样式(overflow:auto)
::-webkit-scrollbar { width 5px; height 5px; } ::-webkit-scrollbar-track-piece { background-color rgba(0, 0, 0, 0.2) -webkit-border-radius 6px } ::-webkit-scrollbar-thumb:vertical { height 5px background-color rgba(125, 125, 125, 0.7) -webkit-border-radius 6px } ::-webkit-scrollbar-thumb:horizontal { width 5px background-color rgba(125, 125, 125, 0.7) -webkit-border-radius 6px }
- 显示不完整用...代替
.fontomit { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- calc