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,18 @@
/* 专门用来清除标签的默认样式的 */
li {
list-style: none; /* 清除li标签的小圆点 */
}
a {
text-decoration: none; /* 清除a标签的下划线 */
}
body,ul,p,h1,h2,h3,h4,h5,h6{
margin: 0;
padding: 0;
}
input, textarea {
border: none;
outline: none;
}

View File

@@ -0,0 +1,391 @@
.header {
height: 40px;
background: #222;
line-height: 40px;
position: fixed;
width: 100%;
left: 0;
top: 0;
z-index: 99;
}
.logo {
width: 86px;
height: 40px;
}
.logo:hover i {
color: #fdd000;
}
.logo:hover .logo_text {
background-position: 0 -30px;
}
.logo i {
font-size: 18px;
color: #ccc;
margin: 1px 7px 0 0;
}
.logo::after {
content: " ";
width: 1px;
height: 15px;
background: #666;
display: inline-block;
margin-top: 13px;
float: right;
}
.logo_text {
width: 44px;
height: 20px;
background: url("../img/souhu.png");
background-repeat: no-repeat;
margin-top: 10px;
}
.logo_menu li {
float: left;
width: 74px;
text-align: center;
height: 40px;
position: relative;
}
.logo_menu li:last-child {
width: 150px;
}
.logo_menu li:hover {
background: #444;
}
.logo_menu li:hover .dropmenu {
display: block;
}
.logo_menu li:hover i {
transform: rotate(180deg);
}
.menu_list {
color: #fff;
}
.logo_menu li a {
color: #fff;
}
.icon-zhankai {
color: #dadada;
display: inline-block;
transition: all 0.2s ease;
}
.dropmenu {
position: absolute;
width: 290px;
height: 136px;
background: #fff;
padding: 7px 10px;
border: 1px solid #ddd;
top: 40px;
left: -110px;
display: none;
}
.dropmenu .item {
color: #191919;
display: inline-block;
width: 67px;
}
.dropmenu .item:hover {
background-color: #f9f9f9;
color: #c9141d;
}
.left,.mid,.right {
height: 700px;
}
.center .left {
width: 140px;
}
.left .text_user {
height: 217px;
text-align: center;
}
.text_user {
background: #fff;
position: relative;
width: 138px;
border: 1px #ddd solid;
}
.text_user .text_userimg {
position: relative;
height: 70px;
width: 70px;
top: -22px;
border-radius: 100%;
}
.text_user .text_usertitle {
margin-top: -11px;
font-size: 16px;
line-height: 20px;
margin-bottom: 5px;
}
.text_tip {
margin-bottom: 5px;
}
.text_nums {
}
.text_nums li{
float: left;
width: 50%;
font-size: 0;
}
.text_nums li p{
font-size: 16px;
color: #191919;
margin-bottom: 3px;
}
.text_nums li span{
font-size: 12px;
color: #666;
}
.viewall {
position: absolute;
bottom: 0;
left: 0;
text-align: center;
width: 100%;
height: 31px;
background: #f9f9f9;
line-height: 31px;
font-size: 12px;
color: #666;
}
.center .mid {
width: 640px;
margin-left: 30px;
}
.center .center_text h2 {
font-size: 28px;
font-weight: 700;
line-height: 38px;
color: #191919;
}
.center .center_text p {
color: #999;
font-size: 14px;
margin-bottom: 10px;
margin-top: 15px
}
.center .right {
width: 340px;
}
.right .search {}
.right .search input{
box-sizing: border-box;
width: 236px;
height: 34px;
color: #999;
font-size: 14px;
border: 1px silver solid;
border-right: none;
padding-left: 12px;
}
.right .search i{
display: inline-block;
width: 53px;
height: 34px;
background: #ffba00;
text-align: center;
line-height: 34px;
}
.content {
margin-top: 80px;
}
.text_comment {
text-align: center;
margin-top: 30px;
}
.titlestyle div {
font-size: 14px;
color: #303030;
}
.titlestyle::before,
.titlestyle::after{
content: " ";
display: inline-block;
width: 48px;
height: 1px;
background: #efefef ;
position: relative;
top: -4px;
}
.titlestyle::before {
left: -7px;
}
.titlestyle::after {
left: 7px;
}
.text_comment i {
font-size: 30px;
display: inline-block;
margin: 10px 0 5px 0;
}
.text_comment p {
font-family: Georgia,Arial;
color: #da2128;
line-height: 32px;
font-size: 24px;
}
.text_share {
margin-top: 30px;
}
.titlestyle{
font-size: 14px;
color: #303030;
text-align: center;
}
.text_share {}
.text_share ul {
margin-top: 15px;
}
.text_share ul li {
margin-bottom: 20px;
padding-left: 22px;
}
.text_share ul li img {
vertical-align: middle;
}
.text_share ul li span {
font-size: 12px;
color: #606060;
}
.center_comment {}
.center_comment .comment_push{}
.comment_push .comment_push_title{
overflow: hidden;
padding: 11px 0 7px;
height: 24px;
line-height: 24px;
font-size: 16px;
}
.comment_push_title .comment_name{
padding-top: 2px;
font-size: 18px;
color: #191919;
}
.comment_push_title .comment_name::before,
.comment_list_title::before {
content: "";
float: left;
display: inline-block;
margin-top: 3px;
width: 4px;
height: 19px;
background: #fdd000;
border-radius: 2px;
margin-right: 12px;
}
.comment_tips {
}
.comment_tips img {
position: relative;
top: -17px;
}
.comment_tips .act {
font-size: 22px;
font-family: "Georgia Regular",Georgia;
color: #d92227;
}
.comment_push_input {
height: 123px;
border: 1px solid #b7b7b7;
}
.comment_push_input textarea {
resize: none;
width: 100%;
padding: 7px 10px 0 15px;
box-sizing: border-box;
height: 84px;
}
.comment_push_action {
position: relative;
height: 35px;
background: #f8f8f8;
padding-left: 10px;
line-height: 35px;
}
.comment_push_action_left {}
.comment_push_action_left span {
font-size: 13px;
}
.comment_push_action_left ul li {
float: left;
}
.comment_push_action_left img {
margin-left: 10px;
margin-top: 9px;
}
.comment_push_submit {
font-size: 14px;
line-height: 37px;
color: #fff;
background: #d81519;
width: 90px;
height: 35px;
float: right;
text-align: center;
margin-right: -1px;
}
.comment_ts {
margin: 12px 0 28px;
font-size: 12px;
color: #999;
}
.comment_list {}
.comment_list_title {
font-size: 16px;
height: 17px;
line-height: 17px;
padding-bottom: 10px;
border-bottom: 1px solid #ddd;
}
.comment_list_title::before {
margin-top: 0;
}
.comment_list_all li img {
width: 50px;
height: 50px;
border-radius: 100%;
}
.comment_list_all {
margin-top: 20px;
}
.comment_list_all li {
margin-bottom: 15px;
border-bottom: 1px dashed #e5e5e5;
overflow: hidden;
padding-bottom: 12px;
}
.all_text {
width: 570px;
margin-left: 14px;
}
.all_text .all_text_title {
font-size: 13px;
color: #d92227;
margin-bottom: 15px;
}
.all_text_title + p {
font-size: 14px;
color: #333;
margin-bottom: 11px;
}
.all_bottom span {
font-size: 12px;
color: #b7b7b7;
}
.bottom_action_item {
float: left;
margin: 0 5px;
padding: 0 10px;
font-size: 12px;
color: #7e7e7e;
line-height: 14px;
}

View File

@@ -0,0 +1,17 @@
/* 存放使用频率高的css代码 */
.center {
width: 1180px;
margin: 0 auto;
}
.float_left {
float: left;
}
.float_right {
float: right;
}
.overflow{
overflow: hidden;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 829 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B

View File

@@ -0,0 +1,249 @@
<!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">
<title>Document</title>
<link rel="stylesheet" href="./css/clear.css">
<link rel="stylesheet" href="./css/public.css">
<link rel="stylesheet" href="http://at.alicdn.com/t/font_2880382_tbxs7c9c3i.css">
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<div class="header">
<div class="center">
<div class="logo float_left">
<i class="iconfont icon-shouye-shouye float_left"></i>
<div class="logo_text float_left"></div>
</div>
<ul class="logo_menu float_left">
<li>
<a href="">新闻</a>
</li>
<li>
<a href="">体育</a>
</li>
<li>
<a href="">汽车</a>
</li>
<li>
<a href="">新闻</a>
</li>
<li>
<a href="">体育</a>
</li>
<li>
<a href="">汽车</a>
</li>
<li>
<a href="">新闻</a>
</li>
<li>
<a href="">体育</a>
</li>
<li>
<a href="">汽车</a>
</li>
<li>
<a href="">新闻</a>
</li>
<li>
<div class="menu_list">
更多
<i class="iconfont icon-zhankai"></i>
<div class="dropmenu">
<a class="item" href="">测试</a>
<a class="item" href="">测试</a>
<a class="item" href="">测试</a>
<a class="item" href="">测试</a>
<a class="item" href="">测试</a>
<a class="item" href="">测试</a>
<a class="item" href="">测试</a>
<a class="item" href="">测试</a>
<a class="item" href="">测试</a>
<a class="item" href="">测试</a>
<a class="item" href="">测试</a>
<a class="item" href="">测试</a>
</div>
</div>
</li>
<li>
<a href="">无障碍</a>
</li>
<li>
<a href="">
<i class="iconfont icon-jurassic_user"></i>
登录
</a>
</li>
</ul>
</div>
</div>
<div class="content">
<div class="center">
<div class="left float_left">
<div class="text_user">
<img class="text_userimg" src="https://5b0988e595225.cdn.sohucs.com/avatar/picon/2014/04/14/139746392399510175.png" alt="">
<p class="text_usertitle">中国新闻网</p>
<div class="text_tip">
<img src="./img/tip.png" alt="">
<img src="./img/tip.png" alt="">
</div>
<ul class="text_nums">
<li>
<p>112万</p>
<span>文章</span>
</li>
<li>
<p>685亿</p>
<span>总阅读</span>
</li>
</ul>
<div class="viewall">查看TA的文章></div>
</div>
<div class="text_comment">
<div class="titlestyle">评论</div>
<i class="iconfont icon-pinglun"></i>
<p>126</p>
</div>
<div class="text_share">
<div class="titlestyle">分享</div>
<ul>
<li>
<img src="./img/wx.png" alt="">
<span>微信分享</span>
</li>
<li>
<img src="./img/wx.png" alt="">
<span>微信分享</span>
</li>
<li>
<img src="./img/wx.png" alt="">
<span>微信分享</span>
</li>
<li>
<img src="./img/wx.png" alt="">
<span>微信分享</span>
</li>
</ul>
</div>
</div>
<div class="mid float_left">
<div class="center_text">
<h2>猪肉价格会继续下降?秋收秋种如何?权威回应来了</h2>
<p>2021-10-20 14:30</p>
</div>
<div class="center_comment">
<div class="comment_push">
<div class="comment_push_title">
<div class="comment_name float_left">
我来说两句
</div>
<div class="comment_tips float_right">
<img class="float_left" src="./img/gt.png" alt="">
<span class="float_left">
<span class="act">126</span>人参与,<span class="act">50</span>条评论
</span>
</div>
</div>
<div class="comment_push_input">
<textarea name="" id="" cols="30" rows="10"></textarea>
<div class="comment_push_action">
<div class="comment_push_action_left">
<span class="float_left">快速登录:</span>
<ul class="float_left">
<li><a href=""><img src="./img/wx.png" alt=""></a></li>
<li><a href=""><img src="./img/wx.png" alt=""></a></li>
<li><a href=""><img src="./img/wx.png" alt=""></a></li>
<li><a href=""><img src="./img/wx.png" alt=""></a></li>
</ul>
</div>
<div class="comment_push_submit">登录并发表</div>
</div>
</div>
</div>
<p class="comment_ts">搜狐“我来说两句” 用户公约</p>
<div class="comment_list">
<div class="comment_list_title">热门评论</div>
<ul class="comment_list_all">
<li>
<img class="float_left" src="http://p6.itc.cn/q_70/images03/20210916/3dbac0fb3bb847dab1634e3c4ea0a78e.jpeg" alt="">
<div class="all_text float_left">
<p class="all_text_title">执著</p>
<p>特别是秋收还能增长?种粮食全在北方,北方那么多地区水灾看不到吗?还增产了居然,呵呵!</p>
<div class="all_bottom">
<span class="float_left">10月20日 19:52</span>
<div class="all_bottom_action float_right">
<div class="bottom_action_item">回复</div>
<div class="bottom_action_item">
<i class="iconfont icon-dianzan_kuai"></i>
2
</div>
</div>
</div>
</div>
</li>
<li>
<img class="float_left" src="http://p6.itc.cn/q_70/images03/20210916/3dbac0fb3bb847dab1634e3c4ea0a78e.jpeg" alt="">
<div class="all_text float_left">
<p class="all_text_title">执著</p>
<p>特别是秋收还能增长?种粮食全在北方,北方那么多地区水灾看不到吗?还增产了居然,呵呵!</p>
<div class="all_bottom">
<span class="float_left">10月20日 19:52</span>
<div class="all_bottom_action float_right">
<div class="bottom_action_item">回复</div>
<div class="bottom_action_item">
<i class="iconfont icon-dianzan_kuai"></i>
2
</div>
</div>
</div>
</div>
</li>
<li>
<img class="float_left" src="http://p6.itc.cn/q_70/images03/20210916/3dbac0fb3bb847dab1634e3c4ea0a78e.jpeg" alt="">
<div class="all_text float_left">
<p class="all_text_title">执著</p>
<p>特别是秋收还能增长?种粮食全在北方,北方那么多地区水灾看不到吗?还增产了居然,呵呵!</p>
<div class="all_bottom">
<span class="float_left">10月20日 19:52</span>
<div class="all_bottom_action float_right">
<div class="bottom_action_item">回复</div>
<div class="bottom_action_item">
<i class="iconfont icon-dianzan_kuai"></i>
2
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
<div class="right float_right">
<div class="search overflow">
<input class="float_left" type="input" value="" placeholder="搜索一下">
<i class="iconfont icon-sousuo1 float_left"></i>
</div>
</div>
</div>
</div>
<div class="footer">
</div>
</body>
</html>