feat(audio): 改进音频自动播放逻辑
- 在HTML中将音频preload属性从none改为auto - 添加用户交互检测以提高自动播放成功率 - 使用setTimeout延迟播放尝试以绕过浏览器限制 - 移除不必要的console.error输出 - 优化CSS以确保评论头像正确显示
This commit is contained in:
@@ -450,6 +450,12 @@
|
||||
height: 28px !important;
|
||||
object-fit: cover; /* 修复移动端头像拉伸问题 */
|
||||
}
|
||||
.atk-comment>.atk-avatar img {
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
width: 28px !important;
|
||||
height: 28px !important;
|
||||
}
|
||||
|
||||
.atk-meta {
|
||||
font-size: 12px !important;
|
||||
|
||||
Reference in New Issue
Block a user