Can CSS be applied to element

前端 未结 6 1848
余生分开走
余生分开走 2021-01-07 05:17

So I ran into problem while writing my own customized HTML5 video player. Can any CSS rules be applied to element? Any nasty hacks? I want to cont

6条回答
  •  佛祖请我去吃肉
    2021-01-07 06:10

    You can apply your css styles using

    video::-webkit-media-text-track-display {
          color: #FAFAFA;
          font-size: 1em;
    }
    

    I've got it to work with font-size and font-family. There's more details on this site http://www.samdutton.com/track/shadowDOM.html

提交回复
热议问题