Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
stdj_h5
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2026-03-10 10:06:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
915178823a1a488e375b88e71ad2fdebea4709a6
91517882
1 parent
3f65eeb3
style(NewsDetail): 为富文本视频添加响应式样式
确保新闻详情页中的视频元素能够自适应容器宽度,保持正确的宽高比,并添加垂直外边距以改善视觉间距。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
src/views/NewsDetail.vue
src/views/NewsDetail.vue
View file @
9151788
...
...
@@ -200,6 +200,14 @@ onMounted(async () => {
margin: 0.5rem auto;
}
/* 富文本视频样式 */
.content-text :deep(video) {
max-width: 100%;
height: auto;
display: block;
margin: 0.5rem auto;
}
/* 错误状态样式 */
.error-container {
background-color: #F2EBDB;
...
...
Please
register
or
login
to post a comment