赞
踩
记录elementUI部分插件样式改变方式:
一、表格插件样式
.el-table__body tr.current-row>td {
color: red;
font-weight: bold;
background: #fad0c3 !important;
}
.el-table--enable-row-hover .el-table__body tr:hover>td{
color: red;
font-weight: bold;
background: #fcede8 !important;
}
二、输入框样式
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none !important;
}
input[type="number"] {
-moz-appearance: textfield !important;
}
<el-input type="number" placeholder="请输入" v-model.number="branchCompanyBidFormData.secondHandMoney" size="medium" clearable oninput="if(value>10000000) value=10000000;if(value<0) value=0;" @mousewheel.native.prevent @DOMMouseScroll.native.prevent />
三、滚动条
// 全局配置 隐藏滚动条
::-webkit-scrollbar {
display: none;
scrollbar-width: none; /* firefox */
-ms-overflow-style: none; /* IE 10+ */
}
// 全局配置隐藏滚动条后,想要局部显示滚动条
::-webkit-scrollbar {
display: block !important;
height: 10px;
background-color: rgba(0,0,0,0.3);
}
/*定义滚动条轨道:内阴影+圆角*/
::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
background-color: #F5F5F5;
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb
{
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: #bbbbbb;
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。