Remove max-width on audio player in Chrome

好久不见. 提交于 2019-12-06 00:23:01

There is a max-width: 800px in the shadow DOM:

You can use ::-webkit-media-controls-enclosure to override it:

audio::-webkit-media-controls-enclosure {
    max-width: 100%; /*or inherit*/
}

http://jsfiddle.net/3qLbdrka/4/

There is chromium issue 138419 marked as "WontFix". The reason is that this is by design. Developers would have to design their own custom UI for special cases like yours (there could be a way to override this in CSS though).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!