* { margin: 0; padding: 0; box-sizing: border-box; word-wrap: break-word; -webkit-tap-highlight-color: transparent; font-family: qfk; } /* 全局css变量 */ :root { --themeColor: #cc1424; --themeColor2: #272727; --fontNum: 16px; } html { height: 100%; user-select: none; } body { font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; font-size: var(--fontNum); height: 100%; color: black; overflow: auto; // background-color: rgba(0, 0, 0, 0.8); } #root { overflow: hidden; margin: auto; position: relative; & > div { width: 100%; height: 100%; } } i { font-style: normal; } img { max-width: 100%; max-height: 100%; vertical-align: middle; object-fit: cover; } ul { list-style: none; } /* 文本域取消下拉 */ textarea { resize: none !important; min-height: 100px !important; } /* 找不到页面 */ .noFindPage { opacity: 0; transition: opacity 0.5s; text-align: center; } [hidden] { display: none !important; } /* antd图片预览组件 */ .ant-image { display: none !important; } // 滚动条 .mySorrl::-webkit-scrollbar { /*滚动条整体样式*/ width: 5px; /*高宽分别对应横竖滚动条的尺寸*/ height: 1px; } .mySorrl::-webkit-scrollbar-thumb { /*滚动条里面小方块*/ border-radius: 10px; -webkit-box-shadow: inset 0 0 5px transparent; background: var(--themeColor); } .mySorrl::-webkit-scrollbar-track { /*滚动条里面轨道*/ -webkit-box-shadow: inset 0 0 5px transparent; border-radius: 10px; background: transparent; } .ant-image-preview-operations { background-color: rgba(0, 0, 0, 0.8) !important; }