1
A
回答
1
我解决我的问题与此代码:
$(function(){
$("video,audio").mediaelementplayer();
$("video,audio").each(function(){
$(this).parents(".mejs-container").css("float", $(this).css("float"));
$(this).css("float", "none");
$(this).parents(".mejs-container").css("marginTop", $(this).css("marginTop"));
$(this).parents(".mejs-container").css("marginRight", (($(this).css("marginRight")=="0px")?"auto":$(this).css("marginRight")));
$(this).parents(".mejs-container").css("marginBottom", $(this).css("marginBottom"));
$(this).parents(".mejs-container").css("marginLeft", (($(this).css("marginLeft")=="0px")?"auto":$(this).css("marginLeft")));
$(this).css("marginTop", "auto");
$(this).css("marginRight", "auto");
$(this).css("marginBottom", "auto");
$(this).css("marginLeft", "auto"); }
);
});
0
嗯,有很多的媒体元素玩家得到的呈现方式的变化。对于类型的视频/ YouTube,它实际上成为一个iframe。
但是我能够通过查看开发人员工具中的检查员来确定id。对我来说,id是'mep_0'。所以,我能够补充:
#mep_0
{
margin: 0 auto;
}
不是优雅的,但它的工作原理。
相关问题
- 1. NRefactory如何保持原始格式
- 2. 保持原始格式POST通过AWK
- 3. 保持与样式
- 4. 使用CSS变换比例保持原始位置
- 5. Android - 任何方式来设置按钮背景的样式,但保持原样?
- 6. 编辑没有SASS的原始CSS样式表
- 7. 是否有原因CSS不支持从样式中应用样式?
- 8. 保持原始值为“variable = NEWVAR || variable;”
- 9. git冲突保持原始上游
- 10. 指定。保持原始大小
- 11. AJAX将PHP表单元素返回到原始CSS样式
- 12. CSS a:链接保留原始颜色
- 13. 避免复制对不同div的CSS样式保持不变
- 14. 如何保持:单击元素后的活动CSS样式
- 15. 保持原始数组的同时保持原始数组的Javascript过滤器深阵列
- 16. Rails和Paperclip ...不保存原始图像,只是样式?
- 17. InstallAware将原始目标地址保持在更新模式
- 18. 强制TinyMCE保持原始源代码格式
- 19. 使用超链接保持原始格式
- 20. 保持数据以原始模式,同时传递到re.match
- 21. 如何使新添加的html代码保持原始的css风格?
- 22. Android支持位图保持原始位置的ArrayList
- 23. Reactjs在初始渲染之前的安装状态或保持原样?
- 24. videojs skin vim不覆盖原始样式。
- 25. CSS:保持列表样式是浮li元素
- 26. 在ASP.NET中将HTML转换为PDF时保持CSS样式
- 27. 在ASP.NET中将HTML转换为Docx时保持CSS样式
- 28. 使用InnerHTML加载html页面时保持CSS样式
- 29. Rx swift在使用flatMap后保持原始流的原始顺序地图
- 30. 从原始文件中添加音频过滤器,自动检测格式时保持原始格式