yd582
火狐狸
火狐狸
  • UID37521
  • 注册日期2011-10-07
  • 最后登录2013-03-31
  • 发帖数227
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
阅读:5894回复:10

自动隐藏最大化、最小化和关闭钮,可以实现吗?

楼主#
更多 发布于:2011-12-12 15:54
自动隐藏最大化、最小化和关闭钮,移动到那个位置自动显示,一般时候为隐藏。可以实现吗?
shineva
小狐狸
小狐狸
  • UID36831
  • 注册日期2011-07-26
  • 最后登录2013-12-16
  • 发帖数30
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度1点
1楼#
发布于:2011-12-12 15:54
@namespace url(http://www.mozilla.org/keymaster/gateke ... s.only.xul);
#titlebar-min {opacity: 0!important; -moz-transition: 0.5s ease}
#titlebar-max {opacity: 0!important; -moz-transition: 0.5s ease}
#titlebar-close {opacity: 0!important; -moz-transition: 0.5s ease}

#titlebar-min:hover {opacity: 0.7 !important}
#titlebar-max:hover {opacity: 0.7 !important}
#titlebar-close:hover {opacity: 0.7 !important}
yd582
火狐狸
火狐狸
  • UID37521
  • 注册日期2011-10-07
  • 最后登录2013-03-31
  • 发帖数227
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
2楼#
发布于:2011-12-12 15:54
shineva:@namespace url(http://www.mozilla.org/keymaster/gateke ... s.only.xul);
#titlebar-min {opacity: 0!important; -moz-transition: 0.5s ease}
#titlebar-max {opacity: 0!important; -moz-transition: 0.5s ease}
#titlebar-close {opacity: 0!important; -moz-transition: 0.5s ease}

#titlebar-min:hover {opacity: 0.7 !important}
#titlebar-max:hover {opacity: 0.7 !important}
#titlebar-close:hover {opacity: 0.7 !important}
回到原帖

有用,但,空白出了一段,我的想法:无空白,不知道这样可以实现吗?
shineva
小狐狸
小狐狸
  • UID36831
  • 注册日期2011-07-26
  • 最后登录2013-12-16
  • 发帖数30
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度1点
3楼#
发布于:2011-12-12 15:54
应该可以,但我不会,无能为力。
noe132
小狐狸
小狐狸
  • UID37651
  • 注册日期2011-10-30
  • 最后登录2016-10-15
  • 发帖数67
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
4楼#
发布于:2011-12-12 15:54
#titlebar-buttonbox-container{
position:fixed;
right:-80px;
top:-11px;
}

#titlebar-buttonbox-container:hover{
position:fixed;
right:0px;
top:-11px;
}
自己修改微调一下位置。top的值是上下的位置,right的值是靠右的位置。
紫焰蔷薇
火狐狸
火狐狸
  • UID38153
  • 注册日期2012-01-24
  • 最后登录2021-09-04
  • 发帖数221
  • 经验102枚
  • 威望0点
  • 贡献值36点
  • 好评度7点
  • 社区居民
  • 忠实会员
5楼#
发布于:2011-12-12 15:54
noe132:#titlebar-buttonbox-container{
position:fixed;
right:-80px;
top:-11px;
}

#titlebar-buttonbox-container:hover{
position:fixed;
right:0px;
top:-11px;
}
自己修改微调一下位置。top的值是上下的位置,right的值是靠右的位置。
回到原帖

这段是加到原来的代码后面吧,试了,无论怎么改,原来的空白都在,是改的位置不对么?
kuhi
小狐狸
小狐狸
  • UID38677
  • 注册日期2012-04-17
  • 最后登录2015-01-08
  • 发帖数33
  • 经验41枚
  • 威望0点
  • 贡献值12点
  • 好评度4点
  • 社区居民
6楼#
发布于:2011-12-12 15:54
.titlebar-placeholder { display: none !important; }
#titlebar-min:not(:hover) {opacity: 0.1 !important; -moz-transition: 0.5s ease}
#titlebar-max:not(:hover) {opacity: 0.1 !important; -moz-transition: 0.5s ease}
#titlebar-close:not(:hover) {opacity: 0.1 !important; -moz-transition: 0.5s ease}

这有类似效果!
紫焰蔷薇
火狐狸
火狐狸
  • UID38153
  • 注册日期2012-01-24
  • 最后登录2021-09-04
  • 发帖数221
  • 经验102枚
  • 威望0点
  • 贡献值36点
  • 好评度7点
  • 社区居民
  • 忠实会员
7楼#
发布于:2011-12-12 15:54
刚刚发现的一段代码。来自这里  怒了,b9在xp下的界面怎么那么恶心呀,UI设计师脑袋怎么长的https://www.firefox.net.cn/forum/viewtopic.php?t=34587&p=264998
/* 隐藏最小化/最大化/关闭按钮 */
#main-window[chromemargin]:not([inFullscreen]) #titlebar-buttonbox{display:none !important;}

效果不错。
2#的用了可以隐藏,但是原来的位置还是继续占用,一段空白,多少有点碍眼,加上5#的调整也没好,可能是我不会改。
7#的可以隐藏,没有空白。但是标签页多了的话第一个会钻到火狐橙按钮下面。
添加到这里,给有一样需要的人看。
fireflies
小狐狸
小狐狸
  • UID39698
  • 注册日期2013-07-28
  • 最后登录2013-12-27
  • 发帖数1
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 社区居民
8楼#
发布于:2011-12-12 15:54
有个扩展可以支持这个功能
lili075249
小狐狸
小狐狸
  • UID40747
  • 注册日期2013-11-04
  • 最后登录2013-11-26
  • 发帖数6
  • 经验4枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
9楼#
发布于:2013-11-04 15:02
This in mixture with different other factors,Buy Runescape Gold  like restrictions on products and 'free respeccing', no technique points, no stat points, and so forth, experienced prospects to Buy Runescape2007 Gold some film game that are going to be exceptionally streamlined and generic. especially where there could possibly be balance.
jbdcsk
小狐狸
小狐狸
  • UID29272
  • 注册日期2009-06-21
  • 最后登录2019-10-23
  • 发帖数64
  • 经验46枚
  • 威望0点
  • 贡献值44点
  • 好评度1点
  • 社区居民
  • 忠实会员
10楼#
发布于:2014-04-21 18:05
如果能上图,就更好了。
游客

返回顶部