{{ content }}
diff --git a/src/assets/css/community/community.css b/src/assets/css/community/community.css index ee93ecf4..4249fe2c 100644 --- a/src/assets/css/community/community.css +++ b/src/assets/css/community/community.css @@ -33,25 +33,25 @@ -.communitybase -{ - height: 100vh; +.communitybase { + position: relative; + height: 93.5vh; background-image: url("../../pictures/communityback.png"); - background-size: 90%; + background-size: cover; /* 适应整个屏幕 */ background-attachment: fixed; /* 背景固定 */ - background-position: -600px; /* 向左移动背景图像 50px */ - background-position: center; /* 可以选择让背景居中 */ - z-index: -1; + background-position: center; /* 背景居中 */ + z-index: 3; + overflow: hidden; /* 防止滚动时内容溢出 */ } .touxiang { position: absolute; - top:50%; + top:12%; left:5%; border-radius: 10px; width: 50px; height:50px; - transform: translateY(-50%) + } .leftinfo { @@ -85,11 +85,13 @@ } .familycontent { + width: 50%; + height: 50%; position: absolute; bottom:12%; left:35%; font-size: 13px; - + overflow: hidden; /* 隐藏超出部分 */ } .Hotsearchnum{ border-radius: 50%; @@ -107,6 +109,13 @@ width: 65%; height:100%; z-index:1; + height: 100%; /* 占据父容器高度 */ + overflow-y: auto; /* 允许垂直滚动 */ +} +/* 隐藏滚动条 */ +.middle::-webkit-scrollbar { + width: 0px; /* 隐藏水平滚动条 */ + height: 0px; /* 隐藏垂直滚动条 */ } .follows { cursor: pointer; @@ -114,12 +123,12 @@ } .follows:hover { - background-color: #d0d0d0; + background-color: #FEB2D7; } .follows.selected { - background-color: rgba(255,255,255,0.8); + background-color:rgba(255, 225, 240, 0.7); font-weight: bold; - color: orchid; + } .alldongtai:hover{ background-color: #d0d0d0; diff --git a/src/components/CommentInput.vue b/src/components/CommentInput.vue index c4805c2e..5fd89e13 100644 --- a/src/components/CommentInput.vue +++ b/src/components/CommentInput.vue @@ -43,7 +43,7 @@ button { align-self: flex-end; padding: 8px 15px; - background-color: #007bff; + background-color: #FE4E96; color: white; border: none; border-radius: 5px; @@ -51,7 +51,7 @@ } button:hover { - background-color: #0056b3; + background-color: #FEB2D7; } \ No newline at end of file diff --git a/src/components/PostCard.vue b/src/components/PostCard.vue index c99fa2d5..7ec46703 100644 --- a/src/components/PostCard.vue +++ b/src/components/PostCard.vue @@ -16,12 +16,21 @@ {{ timestamp }} + + + +
{{ content }}