在引用Player组件的js中,引用自己写好的css文件,内容是:
.video-react .video-react-big-play-button.video-react-big-play-button-hide
{
display: none;
}
然后在使用Player的组件中加入
BigPlayButton
设置好属性:
<BigPlayButton position={'hide'}/>
即可
这个hide你可以自己起名字 比如你叫 yincang,那么css中的名字也要对应写成
.video-react .video-react-big-play-button.video-react-big-play-button-yincang
{
display: none;
}
遇到问题多看一下文档,实际上就是一个css继承或重写的做法