首页 > 解决方案 > 如何在 wordpress 中创建一个粘性广播播放器?

问题描述

我是初学者,我需要你的帮助。

我需要像这个例子一样创建一个粘性广播电台播放器:

http://rareradio.ancorathemes.com/radio-two/

谢谢!

标签: wordpress

解决方案


将您的播放器放在一个 div 中,并在 css 中为其赋予以下属性

position: sticky;
top: 50px;

例子 :

<div class="player-sticky">
Player code.....
</div>

css:
player-sticky:{
position: sticky;
top: 50px;
}

推荐阅读