first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
/* 清除浏览器默认的css样式 */
body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
p {
margin: 0;
padding: 0;
}
li {
list-style: none;
}
a {
text-decoration: none;
}
input,
button,
textarea {
outline: none;
border: none;
}
body {
font-size: 0px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1,98 @@
body{
display: flex;
flex-direction: column;
height: 100vh;
}
.header{
position: fixed;
display: flex;
width: 100%;
justify-content: space-between;
padding: 0 0.37rem;
box-sizing: border-box;
align-items: center;
top: 0.29rem;
z-index: 999;
}
.header img {
width: 0.42rem;
height: 0.42rem;
}
.header ul{
display: flex;
}
.header ul .active::after{
content: "";
width: 0.35rem;
height: 0.02rem;
background-color: #ffffff;
border-radius: 0.01rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: -0.1rem;
}
.header ul li{
font-size: 0.3rem;
color: #fefefe;
position: relative;
}
.header ul li:nth-last-child(2){
margin: 0 0.24rem;
}
.content{
height: 100%;
flex: 1;
background-color: #000000;
}
.footer{
height: 1rem;
background-color: #000000;
display: flex;
align-items: center;
justify-content:space-around ;
}
.footer li{
font-size: 0.24rem;
color: #ffffff;
position: relative;
}
.footer .active{
font-size: 0.3rem;
}
.footer .active::after{
content: "";
width: 0.51rem;
height: 0.03rem;
background-color: #ffffff;
border-radius: 0.015rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: -0.24rem;
}

View File

@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="./rem.js"></script>
<title>Document</title>
<link rel="stylesheet" href="./clear.css">
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div class="header">
<img src="./img/scode.png" alt="">
<ul>
<li class="active">推荐</li>
<li>关注</li>
<li>直播</li>
</ul>
<img src="./img/search.png" alt="">
</div>
<div class="content">
<div class="shop">
<div class="shop_name">
<img class="" src="./img/shop.png" alt="">
<span>美林美妆合肥店 >7KM</span>
</div>
<div class="shop_goods">
<img src="" alt="">
<div class="shop_goods_text">
<div class="goods_title">夏季网纱半身裙中长款纱……</div>
<div class="goods_price">
<span class="price">¥68.00</span>
<span class="good_select">
<span>精选</span>
</span>
</div>
<div class="good_nums">已卖1020</div>
</div>
</div>
</div>
</div>
<ul class="footer">
<li class="active">首页</li>
<li>好友</li>
<li>圈子</li>
<li>购物车</li>
<li>我的</li>
</ul>
</body>
</html>

View File

@@ -0,0 +1,11 @@
window.onload = function () {
getRem(1000, 100)
};
window.onresize = function () {
getRem(1000, 100)
};
function getRem(pwidth, prem) {
var html = document.getElementsByTagName("html")[0];
var oWidth = document.body.clientWidth || document.documentElement.clientWidth;
html.style.fontSize = oWidth / pwidth * prem + "px";
}