update
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
---
|
||||
import Layout from "../../layouts/Layout.astro";
|
||||
import { getConfig } from '../../../utils/config'
|
||||
import '../../assets/css1/style.css'
|
||||
import '../../assets/css1/style5.css'
|
||||
import { newsDetail } from "../../../utils/rpc";
|
||||
const { slug } = Astro.params;
|
||||
const config = getConfig(Astro)
|
||||
@ -81,19 +79,24 @@ if (!data || code !== 0) {
|
||||
</main>
|
||||
</Layout>
|
||||
<style is:inline>
|
||||
.news-content p {
|
||||
margin: 20px 0;
|
||||
color: #6f6f6f;
|
||||
font-size: 18px;
|
||||
line-height: 32px;
|
||||
article p {
|
||||
margin: 1em 0; /* 每段之间留有适当的间距 */
|
||||
color: #333; /* 深灰色,比黑色更柔和,减少眼睛疲劳 */
|
||||
font-size: 18px; /* 合适的字体大小,适合大部分屏幕 */
|
||||
line-height: 1.6; /* 行间距为字体的1.6倍,有助于行间的呼吸感 */
|
||||
letter-spacing: 0.5px; /* 字间距适当加宽,增加可读性 */
|
||||
font-family: 'Microsoft Yahei",Helvetica,Arial,sans-serif'; /* 常见的、现代的无衬线字体,增加可读性 */
|
||||
}
|
||||
.news-content img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
article h3 {
|
||||
text-indent: unset !important;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
|
||||
.news-main {
|
||||
display: grid;
|
||||
flex-direction: row;
|
||||
|
Reference in New Issue
Block a user