css [Nativefier draggable header] --inject site.css #nativefier #customcss

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css [Nativefier draggable header] --inject site.css #nativefier #customcss相关的知识,希望对你有一定的参考价值。

/* site.css */

/* navbar is draggable... */
nav-bar {
  -webkit-app-region: drag;
}

/* but any buttons inside the header shouldn't be draggable */
nav-bar button {
  -webkit-app-region: no-drag;
}

/* perhaps move some items out of way for the traffic light */
nav-bar div:first-child {
  margin-left: 100px;
  margin-top: 25px;
}
/* site.css */

/* header is draggable... */
header {
  -webkit-app-region: drag;
}

/* but any buttons inside the header shouldn't be draggable */
header button {
  -webkit-app-region: no-drag;
}

/* perhaps move some items out of way for the traffic light */
header div:first-child {
  margin-left: 100px;
  margin-top: 25px;
}

以上是关于css [Nativefier draggable header] --inject site.css #nativefier #customcss的主要内容,如果未能解决你的问题,请参考以下文章

css draggable.css

nativefier - 快速把任意网页生成桌面应用程序

nativefier(一行代码将任意网页转化为桌面应用)

用户选择时 draggable="false" 不起作用:CSS 中没有定义

Jquery UI Draggable 添加了 CSS 的 Scale Transition 问题

JQueryUI-拖动(Draggable)-光标样式