style:优化视频样式
- 为 video 元素添加边框和圆角样式 - 设置 object-fit 为 fill 以适应容器 - 注释掉未使用的 .video-player 类样式
This commit is contained in:
@@ -447,4 +447,16 @@ li{
|
|||||||
.custom-swiper-button-next {
|
.custom-swiper-button-next {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
video{
|
||||||
|
border: 1px solid transparent;
|
||||||
|
border-radius: 8px;
|
||||||
|
object-fit: fill;
|
||||||
|
}
|
||||||
|
//.video-player {
|
||||||
|
// //width: 100%;
|
||||||
|
// //height: auto; /* 自动计算高度 */
|
||||||
|
// //max-height: 100%; /* 防止视频超出容器 */
|
||||||
|
// border-radius: 8px;
|
||||||
|
//}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user