fix: 避免横向滚动条

This commit is contained in:
KazooTTT
2025-02-06 14:44:45 +08:00
parent 6e1f206bd8
commit 09f1dfde9d
3 changed files with 17 additions and 2 deletions

View File

@ -121,3 +121,18 @@ const socialImageURL = new URL(ogImage ? ogImage : "/social-card.png", Astro.url
</script>
<meta content={Astro.generator} name="generator" />
<style is:global>
html,
body {
overflow-x: hidden;
width: 100%;
position: relative;
}
/* 确保所有图片不会溢出容器 */
img {
max-width: 100%;
height: auto;
}
</style>