111 lines
2.0 KiB
Plaintext
111 lines
2.0 KiB
Plaintext
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100vh;
|
|
padding: 0 0 120rpx; /* 增大底部内边距,为底部导航栏留出足够空间 */
|
|
box-sizing: border-box;
|
|
background: #f6f6f6;
|
|
}
|
|
|
|
.article-container {
|
|
padding: 20px;
|
|
margin: 20px 20px 50px; /* 增大底部外边距 */
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.article-header {
|
|
margin-bottom: 20px;
|
|
border-bottom: 1px solid #eee;
|
|
padding-bottom: 15px;
|
|
}
|
|
|
|
.article-title {
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
display: block;
|
|
margin-bottom: 10px;
|
|
color: #333;
|
|
}
|
|
|
|
.article-time {
|
|
font-size: 14px;
|
|
color: #999;
|
|
display: block;
|
|
}
|
|
|
|
.article-content {
|
|
line-height: 1.8;
|
|
font-size: 16px;
|
|
color: #333;
|
|
letter-spacing: 0.05em; /* 添加字间距 */
|
|
font-family: "PingFang SC", "Microsoft YaHei", sans-serif; /* 设置更适合阅读的字体 */
|
|
}
|
|
|
|
.article-content rich-text {
|
|
width: 100%;
|
|
}
|
|
|
|
.article-content rich-text p {
|
|
margin-bottom: 15px;
|
|
text-indent: 2em; /* 添加首行缩进2个字符 */
|
|
text-align: justify; /* 文本两端对齐 */
|
|
}
|
|
|
|
/* 文章中的图片样式 */
|
|
.article-content image,
|
|
.article-content img {
|
|
width: 100%;
|
|
margin: 15px 0;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
|
display: block;
|
|
height: auto;
|
|
}
|
|
|
|
/* 引用内容样式 */
|
|
.article-content blockquote {
|
|
padding: 10px 15px;
|
|
background: #f9f9f9;
|
|
border-left: 4px solid #1296db;
|
|
margin: 15px 0;
|
|
color: #666;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* 列表样式 */
|
|
.article-content ul,
|
|
.article-content ol {
|
|
padding-left: 2em;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* 粗体文字样式 */
|
|
.article-content strong {
|
|
font-weight: bold;
|
|
color: #000;
|
|
}
|
|
|
|
/* 文章小标题样式 */
|
|
.article-content h1,
|
|
.article-content h2,
|
|
.article-content h3,
|
|
.article-content h4 {
|
|
margin: 20px 0 10px;
|
|
font-weight: bold;
|
|
color: #222;
|
|
}
|
|
|
|
.article-image {
|
|
max-width: 100%;
|
|
width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
margin: 15px 0;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
|