wordpress - 如何在 wordpress 中创建一个粘性广播播放器?
解决方案
将您的播放器放在一个 div 中,并在 css 中为其赋予以下属性
position: sticky;
top: 50px;
例子 :
<div class="player-sticky">
Player code.....
</div>
css:
player-sticky:{
position: sticky;
top: 50px;
}
推荐阅读
- react-hook-form - 如何在 react-hook-form 中使用 Draft-js-plugins
- javascript - 如何从reactjs中的选择输入中获取标题属性
- vba - 带有 whereCondition 的子表单打开表单
- css - Piranha CMS 和不同的 CSS 框架
- android - Xamarin Image 未从给定的本地计算机路径加载
- flutter - Flutter BlocBuilder 构建器仅在最初被调用并且不对状态更改做出反应
- dataweave - 如何使用 Dataweave 2.0 在另一个嵌套 JSON 对象中组合 JSON 对象
- powershell - 使用 powershell 将 office 365 与 mailchimp 同步时出现问题
- google-apps-script - 如果在单元格谷歌脚本中为“假”,则隐藏绘图
- youtube-api - YouTube 数据 API 未从“社区”标签返回评论