@charset "utf-8"; /*-------------------- 默认设置 -------------------*/ * { padding: 0; margin: 0; box-sizing: border-box; -webkit-box-sizing: border-box; // -webkit-user-select: none; // -moz-user-select: none; /*touch-action: none; */ // -webkit-transform: translate3d(0, 0, 0); // -moz-transform: translate3d(0, 0, 0); // -ms-transform: translate3d(0, 0, 0); // transform: translate3d(0, 0, 0); } *:not(input, textarea) { -webkit-user-select: none; -moz-user-select: none; //-webkit-touch-callout:none; //user-select: none; //-webkit-user-select: none; } html { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight: rgba(0, 0, 0, 0); -webkit-text-size-adjust: none; overflow: -moz-scrollbars-vertical; width: 100%; height: 100%; font-size: 100px; } body { position: relative; width: 100%; height: 100%; margin: 0 auto; font: normal 12px / auto "Helvetica Neue", Helvetica, "Micorsoft YaHei", Arial, sans-serif; /* -webkit-user-select: none;*/ } @font-face { font-family: "alimama"; src: url(@/assets/font/AlimamaShuHeiTi.ttf) format("truetype"); } @font-face { font-family: "HYYakuHei"; src: url(@/assets/font/HYYakuHei-85W.ttf) format("truetype"); } @font-face { font-family: "fzcy"; src: url(@/assets/font/fzcy.ttf) format("truetype"); } @font-face { font-family: "fzzy"; src: url(@/assets/font/fzzy.ttf) format("truetype"); } @font-face { font-family: "SourceHanSansCN"; src: url(@/assets/font/SourceHanSansCN-Regular.ttf) format("truetype"); } @font-face { font-family: "SourceHanSansCNMedium"; src: url(@/assets/font/SourceHanSansCNMedium.ttf) format("truetype"); } SourceHanSansCN Medium * { padding: 0; margin: 0; } // DIV宽高 @mixin box($width, $height) { width: $width; height: $height; } // DIV宽高定位 @mixin pos($width, $height, $left, $top) { width: $width; height: $height; position: absolute; left: $left; top: $top; } // DIV背景 @mixin bg_pos($src) { background-image: url("@/assets/images/" + $src); background-repeat: no-repeat; background-size: 100% 100%; } // flex居中定位 @mixin flex() { display: flex; justify-content: center; align-items: center; } // 全屏样式 @mixin fixed() { width: 100%; height: 100%; position: fixed; top: 0; left: 0; right: 0; bottom: 0; } // flex垂直水平居中 @mixin flexCen() { display: flex; flex-direction: column; align-items: center; justify-content: center; }