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,9 @@
body,ul,li,h1,h6,h2,h3,h4,h5,p {
margin: 0;
padding: 0;
list-style: none;
}
a {
text-decoration: none;
}

View File

@@ -0,0 +1,164 @@
.header {
height: 1rem;
background-color: #000000;
opacity: 0.7;
position: fixed;
left: 0;
width: 100%;
display: flex;
padding-left: 0.24rem;
padding-right: 0.4rem;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
z-index: 999;
}
.header img{
height: 0.65rem;
}
.header .open{
width: 1.44rem;
height: 0.52rem;
background-color: #d0302c;
border-radius: 0.08rem;
font-size: 0.24rem;
letter-spacing: 0rem;
color: #ffffff;
text-align: center;
line-height: 0.52rem;
}
.content {
padding-top: 1rem;
margin-bottom: 2.03rem;
}
.article {
padding-top: 0.24rem;
}
.article h2{
font-size: 0.4rem;
color: #333333;
line-height: 0.54rem;
margin-bottom: 0.38rem;
}
.article .time{
font-size: 0.24rem;
color: #999999;
margin-bottom: 0.68rem;
}
.article .time span:nth-child(1){
margin-right: 0.18rem;
}
.article .time span:nth-child(2){
margin-right: 0.25rem;
}
.article .article_content{
font-size: 0.32rem;
line-height: 0.5rem;
letter-spacing: 0.008rem;
color: #000000;
margin-bottom: 0.38rem;
position: relative;
}
.recommend {
padding-top: 0.17rem;
}
.article_list{}
.article_list li {
display: flex;
border-bottom: 0.01rem solid #e5e5e5;
padding-bottom: 0.46rem;
margin-bottom: 0.32rem;
}
.article_list .item_text{
flex: 1;
margin-right: 0.31rem;
display: flex;
flex-direction: column;
}
.item_text h2{
font-size: 0.32rem;
line-height: 0.5rem;
font-weight: normal;
color: #333333;
margin-bottom: 0.4rem;
}
.item_text span{
font-size: 0.24rem;
line-height: 0.56rem;
color: #999999;
}
.article_list .item_img{
width: 2.26rem;
height: 1.7rem;
border-radius: 0.04rem;
}
.comment {}
.comment ul{
margin-top: 0.3rem;
}
.comment li{
display: flex;
margin-bottom: 0.7rem;
}
.comment li .userimg{
width: 0.7rem;
height: 0.7rem;
border-radius: 100%;
margin-right: 0.2rem;
}
.comment li .ritgh {
flex: 1;
}
.ritgh_t {
display: flex;
justify-content: space-between;
align-items: center;
}
.ritgh_t .ritgh_t_left {}
.ritgh_t .ritgh_t_left .user_title {
font-size: 0.28rem;
color: #000000;
}
.ritgh_t .ritgh_t_left .times {
font-size: 0.2rem;
color: #999999;
transform: scale(0.8);
margin-left: -4px;
}
.ritgh_t .ritgh_t_zan {
display: flex;
align-items: center;
}
.ritgh_t .ritgh_t_zan img{
width: 0.26rem;
height: 0.27rem;
margin-right: 0.1rem;
}
.ritgh_t .ritgh_t_zan span {
font-size: 0.24rem;
color: #999999;
}
.ritgh_b {
margin-top: 0.38rem;
font-size: 0.28rem;
color: #000000;
}
.openApp {
width: 7.02rem;
height: 0.88rem;
border-radius: 0.08rem;
border: solid 0.02rem #d0302c;
font-size: 0.28rem;
line-height: 0.88rem;
text-align: center;
color: #d0302c;
position: fixed;
left: 50%;
bottom: 0.45rem;
background: #fff;
transform: translate(-50%);
}

View File

@@ -0,0 +1,91 @@
.header {
height: 0.95rem;
position: fixed;
width: 100%;
left: 0;
top: 0;
background: #fff;
z-index: 999;
display: flex;
align-items: center;
justify-content: space-around;
border-bottom: 0.01rem solid #e5e5e5;
}
.header li {
color: #999;
font-size: 0.26rem;
position: relative;
}
.ractive {
color: #000 !important;
}
.ractive::after {
content: "";
position: absolute;
width: 0.24rem;
height: 0.05rem;
background: #d0302c;
bottom: -15px;
left: 50%;
transform: translate(-50%);
}
.content {
margin-top: 1.25rem;
margin-left: 0.23rem;
margin-right: 0.25rem;
}
.live_list {}
.live_list li{
margin-bottom: 0.26rem;
}
.live_list .item_top{
width: 7.02rem;
height: 3.9rem;
position: relative;
}
.live_list .item_top img{
width: 100%;
height: 100%;
border-radius: 0.04rem;
}
.live_list .item_top .tips{
position: absolute;
width: 1.14rem;
height: 0.36rem;
right: 0.14rem;
top: 0.14rem;
font-size: 0.24rem;
line-height: 0.36rem;
text-align: center;
color: #ffffff;
background-color: #ff5f13;
}
.live_list .item_top .status{
position: absolute;
right: 0.13rem;
bottom: 0.12rem;
font-size: 0.22rem;
color: #ffffff;
}
.live_list .item_top .time{
position: absolute;
width: 2.8rem;
height: 0.4rem;
background-color: #000000;
border-radius: 0.2rem;
opacity: 0.7;
font-size: 0.22rem;
color: #ffffff;
text-align: center;
left: 50%;
top: 50%;
line-height: 0.4rem;
transform: translate(-50%);
}
.live_list .item_title{
font-size: 0.3rem;
line-height: 0.52rem;
color: #333333;
margin-top: 0.21rem;
}

View File

@@ -0,0 +1,33 @@
.active {
color: #0089dc !important;
}
.margin {
margin-left: 0.23rem;
margin-right : 0.25rem;
}
.text {
font-size: 11px;
transform: scale(0.9);
color: #666;
display: inline-block;
}
.line::after {
content: "";
width: calc(100% + 0.23rem + 0.25rem);
height: 0.16rem;
background-color: #f3f3f3;
display: inline-block;
position: absolute;
left: -0.23rem;
right: -0.25rem;
bottom: -0.54rem;
}
.title {
height: 1.01rem;
background-color: #ffffff;
display: flex;
align-items: center;
font-size: 0.32rem;
color: #333333;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -0,0 +1,13 @@
window.onload = function () {
getRem(1125, 100) //第一位参数和设计图一样大小
};
window.onresize = function () {
getRem(1125, 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";
}

View File

@@ -0,0 +1,133 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>新闻资讯</title>
<script src="../js/rem.js"></script>
<link rel="stylesheet" href="../css/clear.css">
<link rel="stylesheet" href="../css/public.css">
<link rel="stylesheet" href="../css/index.css">
</head>
<body>
<div class="header">
<img src="../img/logo.png" alt="">
<div class="open">打开</div>
</div>
<div class="content margin">
<div class="article ">
<h2>暴降17度,合肥天气明起大反转,还有暴雨来袭!</h2>
<div class="time">
<span>2019-10-07</span>
<span>08:00</span>
<span>浏览量238.0万</span>
</div>
<div class="article_content line">
梦寐以求的小长假就那么过去了
上班的心情总是那么沉重
上班第一天
刚放完假的你
是不是这样的
不过,值得开心的是
晴好天气依旧持续
阳光明媚
气温也似乎变得放飞自我了
预计今天的最高气温会攀升到31℃左右
</div>
</div>
<div class="recommend margin">
<div class="title">相关推荐</div>
<ul class="article_list">
<li>
<div class="item_text">
<h2>
合肥首个铁路主题公园来了!规
模等于两个逍遥津!目测会火,
位置在这
</h2>
<span>2019-10-6</span>
</div>
<img class="item_img" src="../img/item.png" />
</li>
<li>
<div class="item_text">
<h2>
合肥首个铁路主题公园来了!规
模等于两个逍遥津!目测会火,
位置在这
</h2>
<span>2019-10-6</span>
</div>
<img class="item_img" src="../img/item.png" />
</li>
<li>
<div class="item_text">
<h2>
合肥首个铁路主题公园来了!规
模等于两个逍遥津!
</h2>
<span>2019-10-6</span>
</div>
<img class="item_img" src="../img/item.png" />
</li>
</ul>
</div>
<div class="comment">
<div class="title">全部评论</div>
<ul>
<li>
<img class="userimg" src="../img/item.png" alt="">
<div class="ritgh">
<div class="ritgh_t">
<div class="ritgh_t_left">
<p class="user_title">呆小瓜</p>
<div class="times">刚刚</div>
</div>
<div class="ritgh_t_zan">
<img src="../img/item.png" alt="">
<span>15</span>
</div>
</div>
<div class="ritgh_b">
这里是评论的文字这里是评论的文字这里是评论
的文字这里是评论的文字这里是评论的文字这里
是评论的文字这里是评论的文字
</div>
</div>
</li>
<li>
<img class="userimg" src="../img/item.png" alt="">
<div class="ritgh">
<div class="ritgh_t">
<div class="ritgh_t_left">
<p class="user_title">呆小瓜</p>
<div class="times">刚刚</div>
</div>
<div class="ritgh_t_zan">
<img src="../img/item.png" alt="">
<span>15</span>
</div>
</div>
<div class="ritgh_b">
这里是评论的文字这里是评论的文字这里是评论
的文字这里是评论的文字这里是评论的文字这里
是评论的文字这里是评论的文字
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="openApp">打开App</div>
</body>
</html>

View File

@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="../js/rem.js"></script>
<link rel="stylesheet" href="../css/clear.css">
<!-- <link rel="stylesheet" href="../css/public.css"> -->
<link rel="stylesheet" href="../css/live.css">
</head>
<body>
<ul class="header">
<li>包河Radio</li>
<li>包河TV</li>
<li class="ractive">融媒直播</li>
</ul>
<div class="content">
<ul class="live_list">
<li>
<div class="item_top">
<img src="../img/3.png" alt=""/>
<div class="tips">正在直播</div>
<div class="status">342252人在看</div>
<div class="time">直播时间:07-23 16:00</div>
</div>
<p class="item_title">“文字鬼才”马伯庸新书发布座谈会(标题一行就一行)</p>
</li>
<li>
<div class="item_top">
<img src="../img/3.png" alt=""/>
<div class="tips">正在直播</div>
<div class="status">342252人在看</div>
<div class="time">直播时间:07-23 16:00</div>
</div>
<p class="item_title">“文字鬼才”马伯庸新书发布座谈会(标题一行就一行)</p>
</li>
</ul>
</div>
</body>
</html>