CSS
/* 基础训练营样式 */
/* 基础训练营样式 */
/* 基础训练营样式 */
.knowledge-section {
/* 这里可以添加一些基础样式 */
}
@charset "utf-8";
/* 基础容器样式 */
.knowledge-section .container {
width: 100%;
max-width: 1330px;
margin: 0 auto;
padding: 0 15px;
position: relative;
}
/* 图标样式 */
.knowledge-section .icon-play-1:before {
content: '☛';
}
/* 热门知识部分样式 */
.knowledge-section .part-hot-knowledge .part-title {
font-size: 20px;
color: #3c3c3c;
margin: 0 -15px;
font-weight: 400;
background: #f5f9fc;
padding: 15px;
}
.knowledge-section .part-hot-knowledge .part-content {
margin: 0 0 30px;
}
/* 文章列表样式 */
.knowledge-section .articles_knowledge {
margin: 0 -14px;
overflow: hidden;
}
.knowledge-section .articles_knowledge .item_wrap {
float: left;
width: 100%;
padding: 25px 14px 15px;
}
.knowledge-section .articles_knowledge .item {
background: #fff;
padding: 15px;
border-radius: 20px;
transition: all 0.2s;
min-height: 145px;
}
.knowledge-section .articles_knowledge .item:hover {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
transform: translateY(-3px);
}
/* 文章主体样式 */
.knowledge-section .articles_knowledge .item-main {
position: relative;
padding-right: 126px;
}
.knowledge-section .articles_knowledge .item-main .item-thumb {
position: absolute;
right: 0;
top: 0;
width: 110px;
}
.knowledge-section .articles_knowledge .item-main .item-thumb .item-href {
display: block;
border-radius: 20px;
}
.knowledge-section .articles_knowledge .item-main .item-thumb .thumb {
padding-top: 130%;
border-radius: 6px;
background-size: contain;
}
.knowledge-section .articles_knowledge .item-main h2 {
font-size: 14px;
line-height: 1.5;
height: 3em;
overflow: hidden;
margin-bottom: 5px;
font-weight: 400;
color: #2c3e50;
}
.knowledge-section .articles_knowledge .item-main h2 a {
color: #2c3e50;
}
.knowledge-section .articles_knowledge .item-main h2 a:hover {
color: #3385ff;
}
/* 列表样式 */
.knowledge-section .articles_knowledge .item-main ul li {
display: block;
padding: 5px;
overflow: hidden;
font-size: 12px;
}
.knowledge-section .articles_knowledge .item-main ul li:nth-child(odd) {
background: hsla(0, 0%, 84.7%, 0.16);
}
.knowledge-section .articles_knowledge .item-main ul li a {
position: relative;
display: block;
height: 22px;
line-height: 22px;
overflow: hidden;
color: #7c808a;
}
.knowledge-section .articles_knowledge .item-main ul li a:hover {
color: #3385ff;
}
/* 附加信息样式 */
.knowledge-section .articles_knowledge h4 {
font-size: 12px;
line-height: 24px;
font-weight: 400;
color: #bdbdbd;
overflow: hidden;
height: 24px;
display: none;
}
.knowledge-section .articles_knowledge h4 a {
color: #bdbdbd;
}
.knowledge-section .articles_knowledge h4 a:hover {
color: #3385ff;
}
.knowledge-section .articles_knowledge h4 span {
float: left;
margin-right: 40px;
}
.knowledge-section .articles_knowledge .avatar {
width: 24px;
height: 24px;
border-radius: 100%;
padding: 0;
display: inline-block;
vertical-align: top;
}
/* 通用缩略图样式 */
.knowledge-section .thumb {
display: block;
width: 100%;
height: 0;
padding-top: 66.7%;
background-position: 50%;
background-repeat: no-repeat;
background-size: cover;
background-color: transparent;
position: relative;
overflow: hidden;
}
/* 按钮样式 */
.knowledge-section .section-more {
text-align: center;
margin-bottom: 30px;
}
.knowledge-section .section-more .btn {
display: block;
text-align: center;
background: #f7f7f7;
border-radius: 3px;
color: #9e9e9e;
height: 50px;
line-height: 50px;
padding: 0 50px;
white-space: nowrap;
}
/* 响应式布局 */
@media (min-width: 768px) {
.knowledge-section .home-section-knowledge {
padding: 0px 0;
}
.knowledge-section .container {
overflow: visible;
}
.knowledge-section .part-hot-knowledge .part-title {
font-size: 30px;
background: transparent;
margin: 0 0 30px;
padding: 0;
}
.knowledge-section .part-hot-knowledge .part-content {
margin: 0;
}
.knowledge-section .articles_knowledge .item {
padding: 30px 40px;
}
.knowledge-section .articles_knowledge .item-main {
height: 210px;
padding-right: 246px;
margin-bottom: 30px;
}
.knowledge-section .articles_knowledge .item-main .item-thumb {
top: -50px;
width: 200px;
}
.knowledge-section .articles_knowledge .item-main h2 {
font-size: 18px;
margin-bottom: 20px;
}
.knowledge-section .articles_knowledge .item-main ul li {
padding: 10px;
font-size: 14px;
border-radius: 20px;
}
.knowledge-section .articles_knowledge h4 {
display: block;
}
.knowledge-section .section-more {
margin-bottom: 0;
}
.knowledge-section .section-more .btn {
background-color: #3385ff;
background-image: linear-gradient(90deg, #006eff, #13adff);
box-shadow: 0 5px 10px 0 rgba(16, 110, 253, 0.3);
border-radius: 20px;
color: #fff;
display: inline-block;
font-size: 16px;
}
.knowledge-section .section-more .btn:hover {
background-image: linear-gradient(270deg, #006eff, #13adff);
}
}
@media (min-width: 1024px) {
.knowledge-section .articles_knowledge .item_wrap {
width: 50%;
margin-bottom: 30px;
}
}
HTTP
<div class="knowledge-section">
<div class="home-section-knowledge xaiao-knowledge-section" id="h_know">
<div class="home-section-knowledge" id="h_know">
<div class="container">
<div class="part-hot-knowledge">
<h2 class="part-title">AIGC - 免费教学</h2>
<div class="part-content">
<div class="knowledge-lists">
<div class="articles_knowledge">
<div class="item_wrap">
<div class="item">
<div class="item-main">
<div class="item-thumb">
<a class="item-href" href="https://www.npc.ink/16666.html" target="_blank" style="background-color:#227aff"><i class="thumb " style="background-image:url(https://ziyv.yuntunft.cn/wp-content/uploads/2024/07/17199992502024070309341015.png)"></i></a>
</div>
<h2><a href="https://xaiao.com/collection/sadasdsfgx" target="_blank">知识树系列!AI超全面自学手册(含最新版软件下载)</a></h2>
<div class="lessons">
<ul>
<li> <a href="https://xaiao.com/47407.html" target="_blank"> <i class="icon-play-1"></i> <span>Lesson 1</span> AI自学手册! NO.1 结构化提示词教程 </a> </li>
<li> <a href="https://xaiao.com/47408.html" target="_blank"> <i class="icon-play-1"></i> <span>Lesson 2</span> AI自学手册! NO.2 如何写好结构化 Prompt ? </a> </li>
<li> <a href="https://xaiao.com/47409.html" target="_blank"> <i class="icon-play-1"></i> <span>Lesson 3</span> AI自学手册!NO.3 如何让AI对话更加“有人味儿“? </a> </li>
</ul>
</div>
</div>
<h4><span class="author"> <a href="https://xaiao.com/collection/sadasdsfgx" target="_blank"> <i class="thumb avatar" style="background-image:url(https://ziyv.yuntunft.cn/wp-content/uploads/2024/07/17199968722024070308543296.png)"></i> 阿铎AI</a> </span><span class="c_level"> 水平:入门 </span><span class="views"> 观众:810729 </span></h4>
</div>
</div>
<div class="item_wrap">
<div class="item">
<div class="item-main">
<div class="item-thumb">
<a class="item-href" href="https://xaiao.com/collection/hgfthrxcx" target="_blank" style="background-color:#3f3991"><i class="thumb " style="background-image:url(https://ziyv.yuntunft.cn/wp-content/uploads/2024/07/17199992512024070309341153.png)"></i></a>
</div>
<h2><a href="https://xaiao.com/collection/hgfthrxcx" target="_blank">知识树系列!最容易上手的SD基础教程合集</a></h2>
<div class="lessons">
<ul>
<li> <a href="https://xaiao.com/45338.html" target="_blank"> <i class="icon-play-1"></i> <span>Lesson 1</span> SD基础!NO .1Stable Diffusion是什么? </a> </li>
<li> <a href="https://xaiao.com/45336.html" target="_blank"> <i class="icon-play-1"></i> <span>Lesson 2</span> SD基础!NO .2模型下载及安装使用 </a> </li>
<li> <a href="https://xaiao.com/45334.html" target="_blank"> <i class="icon-play-1"></i> <span>Lesson 3</span> SD基础!NO .3常用模型推荐 </a> </li>
</ul>
</div>
</div>
<h4><span class="author"> <a href="https://xaiao.com/collection/hgfthrxcx" target="_blank"> <i class="thumb avatar" style="background-image:url(https://ziyv.yuntunft.cn/wp-content/uploads/2024/07/1719996871202407030854316.png)"></i> 阿铎AI</a> </span><span class="c_level"> 水平:入门 </span><span class="views"> 观众:815007 </span></h4>
</div>
</div>
<div class="item_wrap">
<div class="item">
<div class="item-main">
<div class="item-thumb">
<a class="item-href" href="https://www.npc.ink/aftereffects/12121499.html" target="_blank" style="background-color:#b64dff"><i class="thumb " style="background-image:url(https://ziyv.yuntunft.cn/wp-content/uploads/2024/07/17199992522024070309341223.png)"></i></a>
</div>
<h2><a href="https://xaiao.com/collection/sadsa" target="_blank">知识树系列!最全面的ChatGPT教程零基础入门教程合集</a></h2>
<div class="lessons">
<ul>
<li> <a href="https://xaiao.com/45212.html" target="_blank"> <i class="icon-play-1"></i> <span>Lesson 1</span> AI基础!NO.1 ChatGPT是什么? </a> </li>
<li> <a href="https://xaiao.com/45210.html" target="_blank"> <i class="icon-play-1"></i> <span>Lesson 2</span> AI基础!NO.2 GPT-4o与GPT-4的差异 </a> </li>
<li> <a href="https://xaiao.com/45208.html" target="_blank"> <i class="icon-play-1"></i> <span>Lesson 3</span> AI基础!NO.3 ChatGPT的基本原则和实用建议 </a> </li>
</ul>
</div>
</div>
<h4><span class="author"> <a href="https://xaiao.com/collection/sadsa" target="_blank"> <i class="thumb avatar" style="background-image:url(https://ziyv.yuntunft.cn/wp-content/uploads/2024/07/17199968102024070308533046.png)"></i> 阿铎AI</a> </span><span class="c_level"> 水平:入门 </span><span class="views"> 观众:699542 </span></h4>
</div>
</div>
<div class="item_wrap">
<div class="item">
<div class="item-main">
<div class="item-thumb">
<a class="item-href" href="https://xaiao.com/collection/mjhmgfhf" target="_blank" style="background-color:#ff903e"><i class="thumb " style="background-image:url(https://ziyv.yuntunft.cn/wp-content/uploads/2024/07/17199992522024070309341283.png)"></i></a>
</div>
<h2><a href="https://xaiao.com/collection/mjhmgfhf" target="_blank">知识树系列!最容易理解的MJ零基础入门教程合集</a></h2>
<div class="lessons">
<ul>
<li> <a href="https://xaiao.com/45282.html" target="_blank"> <i class="icon-play-1"></i> <span>Lesson 1</span> MJ基础!NO.1 Midjourney是什么? </a> </li>
<li> <a href="https://xaiao.com/45280.html" target="_blank"> <i class="icon-play-1"></i> <span>Lesson 2</span> MJ基础!NO.2 Prompt的基本结构 </a> </li>
<li> <a href="https://xaiao.com/45278.html" target="_blank"> <i class="icon-play-1"></i> <span>Lesson 3</span> MJ基础!NO.3 Prompt的常用参数 </a> </li>
</ul>
</div>
</div>
<h4><span class="author"> <a href="https://xaiao.com/collection/mjhmgfhf" target="_blank"> <i class="thumb avatar" style="background-image:url(https://ziyv.yuntunft.cn/wp-content/uploads/2024/07/17199968732024070308543380.png)"></i> 阿铎AI</a> </span><span class="c_level"> 水平:入门 </span><span class="views"> 观众:735934 </span></h4>
</div>
</div>
</div>
</div>
</div>
<div class="section-more">
<a href="https://xaiao.com/collection" class="btn btn-blue"> 查看更多知识树 <i class="icon-arrows-right"></i> </a>
</div>
</div>
</div>
</div>
</div>
</div>
温馨提示: