小编pfg*_*pfg的帖子

将标签添加到没有标题栏的窗口

我正在尝试将标签添加到没有标题栏的窗口.设置self.titlebarAppearsTransparent = true或禁用标题栏会阻止系统选项卡,我在对象面板中找不到任何Safari样式选项卡.

在普通窗口中,您可以通过创建两个窗口并选择"窗口">"合并所有Windows"来创建选项卡

这可以在Xcode默认的"显示,最小化,缩放"下看到.

选项显示 可以创建普通窗口,选项卡

在无边框窗口上,该选项不存在,并且不在第一响应者中

选项未显示 无边框窗口,不允许使用标签

在具有titlebarAppearsTransparent的窗口上,该选项不在那里,并且不在第一响应者中.

选项未显示 titlebarAppearsTransparent窗口,不允许使用Tabs

没有使用Merge all Windows,似乎没有内置的Safari样式选项卡视图.内置的选项卡视图使用系统首选项样式选项卡,我试图获取Safari/Finder /系统样式选项卡.我不想使用自定义渲染标签,因为它们不起作用,感觉与系统标签的方式相同.

macos xcode tabs swift

5
推荐指数
1
解决办法
427
查看次数

将元素放置在div的底部

有谁知道一种将页脚像position: fixed元素一样固定在div底部的方法。我发现的所有方法都将其粘贴在开始视图的底部或底部,因此您必须一直向下滚动才能看到它们。

我试过将父项设置为position:relative,子项设置为position: absolute,也使用display: table-cellvertical-align: bottom,但是在滚动时都不会将其固定在原处,而是在div的底部或默认视图的底部将其保留为静态。

.a{
  position:relative;
  background-color:#ccc;
  width:500px;
  min-height: 150px;
  max-height: 150px;
  overflow-y: scroll;
  float:left;
  padding:8px;
}

.footer{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  background-color:#666;
  color:#fff;
}
Run Code Online (Sandbox Code Playgroud)
<div class="a">
    Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />Some content<br />
    <div class="footer">Some …
Run Code Online (Sandbox Code Playgroud)

html css css-position

2
推荐指数
1
解决办法
7394
查看次数

标签 统计

css ×1

css-position ×1

html ×1

macos ×1

swift ×1

tabs ×1

xcode ×1