目录
Toggle
最近在继续完善新的YRWP成品网站模板,因为加入了AI插件,所以暂时就叫它YRWP AI模板吧。这个系列的模板我添加了一个多规格管理,里面有两种形式,一种是询盘篮模式,填写后用户可以把不同的子项目产品添加到询盘篮,另外一种是纯展示械,就是只展示一些纯文字信息。

默认情况这个纯展示信息添加后,它在前端显示的样式如上图所示,很简单,没有任何样式。因为考虑到不是每个人都需要这个功能,同时又不把想模板做得太复杂。而且每个人都有不同的审美,这些这部分功能我不准备改。

不过我会给大家分享一些设置好的样式,大家直接把CSS代码复制粘贴到【外观-自定义-额外 CSS】就可以了。下面的CSS样式复制粘贴即可,里面的参数,如间隔、圆角、边框、颜色等都可以按需修改。
.yrwp-feature-list {
display: grid;
grid-template-columns: 1fr 2fr;
border: 1px solid #e5e7eb;
border-radius: 3px;
overflow: hidden;
}
.yrwp-feature-item {
display: contents;
}
.yrwp-feature-name {
padding: 10px 10px;
background: #f3f4f6;
border-right: 1px solid #e5e7eb;
border-bottom: 1px solid #e5e7eb;
font-weight: 600;
color: #1f2937;
}
.yrwp-feature-desc {
padding: 10px 12px;
border-bottom: 1px solid #e5e7eb;
color: #4b5563;
}
/* 清除最后一行下边框 */
.yrwp-feature-item:last-child .yrwp-feature-name,
.yrwp-feature-item:last-child .yrwp-feature-desc {
border-bottom: none;
}
@media (max-width: 767px) {
.yrwp-feature-list {
grid-template-columns: 1fr;
}
.yrwp-feature-name {
border-right: none;
}
}

.yrwp-feature-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.yrwp-feature-item {
display: flex;
align-items: center;
padding: 12px;
background: #f7f8fa;
border-radius: 3px;
transition: transform 0.2s ease;
}
.yrwp-feature-item:hover {
transform: translateY(-3px);
}
.yrwp-feature-name {
background: #2563eb;
color: #fff;
padding: 4px 12px;
border-radius: 3px;
font-size: 0.82rem;
margin-right: 16px;
text-transform: uppercase;
}
.yrwp-feature-desc {
color: #333;
}
@media (max-width: 767px) {
.yrwp-feature-item {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.yrwp-feature-name {
margin-right: 0;
}
}

.yrwp-feature-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.yrwp-feature-item {
display: flex;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid #ddd;
}
.yrwp-feature-name {
min-width: 180px;
color: #222;
font-weight: 500;
padding-right:10px;
}
.yrwp-feature-desc {
color: #666;
}
@media (max-width: 767px) {
.yrwp-feature-item {
flex-direction: column;
align-items: flex-start;
gap: 4px;
}
.yrwp-feature-name {
min-width: auto;
}
}

.yrwp-feature-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.yrwp-feature-item {
display: flex;
align-items: center;
padding: 10px 15px;
background: #1e2228;
border-radius: 3px;
}
.yrwp-feature-name {
min-width: 190px;
color: #4fc3f7;
font-weight: 500;
text-transform: uppercase;
padding-right:10px;
}
.yrwp-feature-desc {
color: #e5e7eb;
}
@media (max-width: 767px) {
.yrwp-feature-item {
flex-direction: column;
align-items: flex-start;
gap: 5px;
}
.yrwp-feature-name {
min-width: auto;
}
}

.yrwp-feature-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.yrwp-feature-item {
display: flex;
align-items: center;
padding: 12px 15px;
background: #fff;
border-radius: 3px;
box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 0 0 1px #f1f1f1;
}
.yrwp-feature-name {
min-width: 210px;
font-weight: 600;
color: #b8860b;
letter-spacing: 1px;
text-transform: uppercase;
padding-right:10px;
}
.yrwp-feature-desc {
color: #333;
font-size: 0.96rem;
}
@media (max-width: 767px) {
.yrwp-feature-item {
flex-direction: column;
align-items: flex-start;
gap: 6px;
}
.yrwp-feature-name {
min-width: auto;
}
}

.yrwp-feature-list {
background: #fafafa;
border-radius: 3px;
overflow: hidden;
}
.yrwp-feature-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 15px 12px 15px;
border-bottom: 1px solid #eee;
}
.yrwp-feature-item:last-child {
border-bottom: none;
}
.yrwp-feature-name {
font-weight: 600;
color: #333;
font-size: 0.95rem;
}
.yrwp-feature-desc {
color: #555;
font-size: 0.95rem;
text-align: right;
max-width: 60%;
word-break: break-word;
}
@media (max-width: 767px) {
.yrwp-feature-item {
flex-direction: column;
align-items: flex-start;
gap: 0.3rem;
}
.yrwp-feature-desc {
text-align: left;
max-width: 100%;
}
}

.yrwp-feature-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1rem;
}
.yrwp-feature-item {
position: relative;
background: #fff;
padding: 1.5rem 1.2rem;
border-radius: 3px;
text-align: center;
border: 1px solid #dddddd65;
box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.yrwp-feature-item:hover {
border-color: #3b82f6;
}
.yrwp-feature-name {
display: block;
font-size: 0.9rem;
font-weight: 600;
text-transform: uppercase;
color: #222;
letter-spacing: 1px;
margin-bottom: 0.1rem;
}
.yrwp-feature-desc {
display: block;
font-size: 0.8rem;
color: #888;
word-break: break-word;
}
@media (max-width: 767px) {
.yrwp-feature-list {
grid-template-columns: 1fr;
}
}

.yrwp-feature-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.yrwp-feature-item {
display: flex;
align-items: center;
padding: 12px 16px;
border: 1px solid #e2e8f0;
border-radius: 3px;
background: transparent;
transition: border-color 0.25s ease;
}
.yrwp-feature-item:hover {
border-color: #3b82f6;
}
.yrwp-feature-name {
min-width: 210px;
font-weight: 600;
color: #1e293b;
text-transform: uppercase;
}
.yrwp-feature-desc {
color: #64748b;
}
@media (max-width: 767px) {
.yrwp-feature-item {
flex-direction: column;
align-items: flex-start;
gap: 6px;
}
.yrwp-feature-name {
min-width: auto;
}
}

.yrwp-feature-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.yrwp-feature-item {
display: flex;
align-items: center;
padding: 14px 20px;
background: #f5f7fa;
border-radius: 3px;
border: 1px solid #d8dde6;
box-shadow: inset 0 1px 0 #fff;
}
.yrwp-feature-name {
min-width: 210px;
color: #2c3e50;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
padding-right:10px;
}
.yrwp-feature-desc {
color: #4a5568;
}
@media (max-width: 767px) {
.yrwp-feature-item {
flex-direction: column;
align-items: flex-start;
gap: 6px;
}
.yrwp-feature-name {
min-width: auto;
}
}

好了就暂时分享这几种美化样式吧,如果没有喜欢的,你可以把上面任何一个代码发给AI,让AI帮你继续优化即可。
© Copyright 2020~2026. 悦然网络工作室/悦然wordpress建站 专注中小企业wordpress建站 All Rights Reserved.网站地图
本站图片来源为Pexels、Pixabay、Freepik、Unsplash等图片库的免费许可,CC0协议;还有部分为自己手绘或AI生成,版权碰瓷请自重!法律服务:law@yueranseo.com
蜀ICP备20016391号-1
