我正在尝试将标签添加到没有标题栏的窗口.设置self.titlebarAppearsTransparent = true
或禁用标题栏会阻止系统选项卡,我在对象面板中找不到任何Safari样式选项卡.
在普通窗口中,您可以通过创建两个窗口并选择"窗口">"合并所有Windows"来创建选项卡
这可以在Xcode默认的"显示,最小化,缩放"下看到.
在无边框窗口上,该选项不存在,并且不在第一响应者中
在具有titlebarAppearsTransparent的窗口上,该选项不在那里,并且不在第一响应者中.
没有使用Merge all Windows
,似乎没有内置的Safari样式选项卡视图.内置的选项卡视图使用系统首选项样式选项卡,我试图获取Safari/Finder /系统样式选项卡.我不想使用自定义渲染标签,因为它们不起作用,感觉与系统标签的方式相同.
有谁知道一种将页脚像position: fixed
元素一样固定在div底部的方法。我发现的所有方法都将其粘贴在开始视图的底部或底部,因此您必须一直向下滚动才能看到它们。
我试过将父项设置为position:relative
,子项设置为position: absolute
,也使用display: table-cell
和vertical-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)