diff --git a/src/assets/styles/main.less b/src/assets/styles/main.less index 8650ff0..96f5033 100644 --- a/src/assets/styles/main.less +++ b/src/assets/styles/main.less @@ -1,3 +1,5 @@ +// Some primary CSS, and reset CSS + @font-face { font-family: TitleFont; src: url(../fonts/xpsj.subset.woff2) format('woff2'); @@ -20,6 +22,9 @@ body { * { box-sizing: border-box; + border-width: 0; + border-style: solid; + border-color: #e5e7eb; // font-size: 14px; scrollbar-width: none; /* 火狐滚动条无法自定义宽度,只能通过此属性使滚动条宽度变细 */ -ms-overflow-style: none; /* 隐藏滚动条(在IE和Edge两个浏览器中很难更改样式,固采取隐藏方式) */ @@ -57,7 +62,9 @@ select:-webkit-autofill:focus { } a { - text-decoration: none; + // text-decoration: none; + color: inherit; + text-decoration: inherit; } ul, ol, @@ -74,10 +81,28 @@ h6 { li { list-style: none; } + +img, +svg, +video, +canvas, +audio, +iframe, +embed, +object { + display: block; + vertical-align: middle; +} + img { -webkit-user-drag: none; user-select: none; } +img, +video { + max-width: 100%; + height: auto; +} input { outline: 0; &:-moz-focusring {