闪存
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s

This commit is contained in:
2026-05-06 10:50:48 +08:00
parent 251a13c368
commit aeec3e4f0d
2 changed files with 120 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
<link rel="stylesheet" href="__CSS__/topic_laptop/header.css">
<link rel="stylesheet" href="__CSS__/topic_ssd/index.css">
<script type="text/javascript">
(function (doc, win)
{
var docEl = doc.documentElement;
var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
var designWidth = 2560;
var designRemPx = 100;
function setRootFontSize ()
{
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
var fontSize = (clientWidth / designWidth) * designRemPx;
fontSize = Math.max(fontSize, 20);
fontSize = Math.min(fontSize, designRemPx);
docEl.style.fontSize = fontSize + 'px';
}
setRootFontSize();
win.addEventListener(resizeEvt, setRootFontSize);
doc.addEventListener('DOMContentLoaded', setRootFontSize);
})(document, window);
</script>
<body>
<div class="sc-main">
<a href="#" target="_blank">
<img src="./img/sc-img-1.png" alt="" class="sc-main-img">
</a>
<a href="#" target="_blank" class="sc-mt20">
<img src="./img/sc-img-2.png" alt="" class="sc-main-img">
</a>
<a href="#" target="_blank" class="sc-mt20">
<img src="./img/sc-img-3.png" alt="" class="sc-main-img">
</a>
<a href="#" target="_blank" class="sc-mt20">
<img src="./img/sc-img-4.png" alt="" class="sc-main-img">
</a>
<div class="sc-main-imgs sc-mt20">
<a href="#" target="_blank" class="">
<img src="./img/sc-img-4.png" alt="" class="sc-main-img1">
</a>
<a href="#" target="_blank" class="">
<img src="./img/sc-img-4.png" alt="" class="sc-main-img1">
</a>
<a href="#" target="_blank" class="">
<img src="./img/sc-img-4.png" alt="" class="sc-main-img1">
</a>
<a href="#" target="_blank" class="">
<img src="./img/sc-img-4.png" alt="" class="sc-main-img1">
</a>
</div>
</div>
</body>

View File

@@ -0,0 +1,64 @@
html {
width: 100%;
}
body {
/* width: 100vw;
height: 100vh; */
background: #000;
overflow-x: hidden;
scroll-behavior: smooth !important;
-webkit-overflow-scrolling: touch !important;
}
/* 当视口宽度大于1920px时生效 */
@media screen and (min-width: 1920px) {
/* 这里写你的样式 */
body {
max-width:100% !important;
width: 100vw !important;
}
}
.sc-main {
width: 100%;
height: 100%;
max-width: 2560px;
margin: 0 auto;
}
a {
text-decoration: none;
display: block;
}
img {
display: block;
}
.sc-main-img {
width: 100%;
max-width: 2560px;
}
.sc-mt20 {
margin-top: 0.2rem;
}
.sc-main-imgs {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.2rem;
list-style: none;
/* 去除列表样式(如果有) */
}
.sc-main-imgs a {
display: block;
}
.sc-main-img1 {
width: 100%;
height: auto;
/* 保持比例 */
display: block;
}