CSS 3

CSS 3

1. 强制单行显示

white-space: nowrap; /*强制单行显示*/
text-overflow: ellipsis; /*超出部分省略号表示*/
overflow: hidden; /*超出部分隐藏*/

2. 隐藏滚动条

.content::-webkit-scrollbar {
    
    
    display: none; /*隐藏滚动条*/
}
.el-table__body-wrapper::-webkit-scrollbar {
    
    
    /* width: 0;宽度为0隐藏 */
    width: 0px;
}

::-webkit-scrollbar {
    
    
    width: 0 !important;
}

::-webkit-scrollbar {
    
    
    width: 0 !important;
    height: 0;
}

3. 下拉框禁用样式

/deep/ .el-input.is-disabled .el-input__inner {
    
    
  background-color: #FFFFFF;
  border-color: #dfe4ed;
  cursor: not-allowed;
  color: #606266;
}

猜你喜欢

转载自blog.csdn.net/weixin_53313592/article/details/128850120