//text .del{ text-decoration-line: line-through; } .flicker{ font-size: 1em; color: red; animation: changeshadow 2s ease-in infinite; -webkit-animation: changeshadow 2s linear infinite; -moz-animation: changeshadow 2s linear infinite; -ms-animation: changeshadow 2s linear infinite; -o-animation: changeshadow 2s linear infinite; } @keyframes changeshadow { 0%{ text-shadow: 0px 0px 4px red} 50%{ text-shadow: 0px 0px 40px red} 100%{ text-shadow: 0px 0px 4px red} } /* 添加兼容性前缀 */ @-webkit-keyframes changeshadow { 0%{ text-shadow: 0px 0px 4px red} 50%{ text-shadow: 0px 0px 40px red} 100%{ text-shadow: 0px 0px 4px red} } @-moz-keyframes changeshadow { 0%{ text-shadow: 0px 0px 4px red} 50%{ text-shadow: 0px 0px 40px red} 100%{ text-shadow: 0px 0px 4px red} } @-ms-keyframes changeshadow { 0%{ text-shadow: 0px 0px 4px red} 50%{ text-shadow: 0px 0px 40px red} 100%{ text-shadow: 0px 0px 4px red} } @-o-keyframes changeshadow { 0%{ text-shadow: 0px 0px 4px red} 50%{ text-shadow: 0px 0px 40px red} 100%{ text-shadow: 0px 0px 4px red} } .noselect { -webkit-touch-callout: none; /* iOS Safari */ -webkit-user-select: none; /* Chrome/Safari/Opera */ -khtml-user-select: none; /* Konqueror */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* Internet Explorer/Edge */ user-select: none; } .fa-sort{ opacity: 0.3; } .text-letter{ word-break: break-all } .cursor-pointer{ color: dodgerblue; cursor: pointer; } //文本溢出隐藏展示... .text-overflow-replace{ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; } .text-overflow-replace-100{ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; max-width: 100px; } .text-overflow-replace-200{ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; max-width: 200px; } //文本溢出换行展示 .text-overflow-warp{ white-space: normal; } .text-overflow-warp-100{ max-width: 100px; white-space: normal; } .text-overflow-warp-200{ max-width: 200px; white-space: normal; } //溢出换行无上限,有下限 .warp-min-200{ max-width:100% !important; min-width:200px; } //输入框font标签图 .form-font{ margin-bottom: 1.5px; padding-top: 0.3rem; text-align: center; border: 1px solid rgba(0,0,0,.2); border-radius: 0.3rem; margin-right: 0px; } //圆角边框 .fillet{ border:2px solid cornflowerblue; border-radius: 30px; } //放大标记 .sign{ transform: scale(1.2); box-shadow: 0px 0px 9px 3px #999; } //放大标记-略小 .sign-sm{ transform: scale(1.05); box-shadow: 0px 0px 9px 3px #999; } //分隔线 .hr-info{ height:3px; border:none; border-top:3px solid #007bff; } //文本强制换行 .text-wrap{ white-space: normal; word-break:break-all } //文本强调阴影 .text-shadow-stress{ text-shadow: 3px 3px 3px yellow } //滚动条美化 .scrollbar::-webkit-scrollbar { /*滚动条整体样式*/ width : 10px; /*高宽分别对应横竖滚动条的尺寸*/ height: 10px; } .scrollbar::-webkit-scrollbar-thumb { /*滚动条里面小方块*/ border-radius: 10px; box-shadow : inset 0px 0px 5px rgba(0, 0, 0, 0.2); background : #535353; } .scrollbar::-webkit-scrollbar-track { /*滚动条里面轨道*/ box-shadow : inset 0px 0px 5px rgba(0, 0, 0, 0.2); border-radius: 10px; background : #ededed; } //虚线边框-红色 .border-dashed-red { border:2px dashed red; } //滑块 .switch{ outline: none; cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none; position: relative; width: 40px; height: 20px; background: #ccc; border-radius: 10px; transition: border-color .3s, background-color .3s; } .switch::after { content: ''; display: inline-block; width: 1rem; height:1rem; border-radius: 50%; background: #fff; box-shadow: 0 0 2px #999; transition:.4s; top: 2px; position: absolute; left: 2px; } .switch:checked { background: rgb(19, 206, 102); } .switch:checked::after { content: ''; position: absolute; left: 55%; top: 2px; } //浅色 .opacity{ opacity: 0.6; } //选中的黑色阴影效果 .box-shadow-dark{ box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.9); z-index:100; position:relative; } //超高滚动 200px .overflow-scrollbar-200{ max-height: 200px; max-width: 100%; overflow: auto; border: RGB(204,204,204) solid 1px; border-radius: 5px } .overflow-y-scrollbar-200{ max-height: 200px; overflow-y: auto; border: RGB(204,204,204) solid 1px; border-radius: 5px } //规定最小宽度 .td-min-width-80 tr td{ min-width: 80px; } //浮动表头 .header-float{ position: sticky; position: -webkit-sticky; background-color: white; z-index: 50; } //td颜色 .td-red td{ color: red !important; } .td-green td{ color: green !important; } //复选框 .fixed-checkbox{ display: none; +label{ background-color: white; border-radius: 5px; border: 1px solid #d3d3d3; width: 20px; height: 20px; margin-bottom: 0px; display: inline-block; text-align: center; vertical-align: bottom; line-height: 20px; :hover { cursor: pointer; border: 1px solid #2783FB; } } } .fixed-checkbox:checked+label{ background: #2783FB; } .fixed-checkbox:checked+label:after { content: "\2714"; color: white; } //tr选中效果 .tr-select td{ background-color: rgb(170, 199, 234) !important; } //icon .icon-item{ float: left; width: 38px; height: 38px; padding: 12px; margin: 0px 12px 12px 0px; text-align: center; cursor: pointer; border-radius: 3px; font-size: 14px; box-shadow: 0px 0px 0px 1px #ddd; color: inherit; } //文本颜色 .text-greed{ color: #27864f !important; }