wenshanliren
小狐狸
小狐狸
  • UID28120
  • 注册日期2009-02-27
  • 最后登录2024-04-03
  • 发帖数45
  • 经验77枚
  • 威望0点
  • 贡献值62点
  • 好评度1点
  • 社区居民
阅读:843回复:1

【求助】Firefox64设置标签最大宽度失效

楼主#
更多 发布于:2018-12-20 21:36
Firefox64设置标签最大宽度UC脚本失效,请教各位大大如何修改
PS,也不是失效,只是优先级不高,重新被browser.css改回去了
// 设置标签最大宽度
{var ruleEndPosition = window.document.styleSheets[1].cssRules.length;
window.document.styleSheets[1].cssRules[window.document.styleSheets[1].insertRule('.tabbrowser-tab:not([pinned]){}', ruleEndPosition)];
window.document.styleSheets[1].cssRules[ruleEndPosition].style.maxWidth="201px";
}
fang5566
管理员
管理员
  • UID3719
  • 注册日期2005-03-07
  • 最后登录2024-04-15
  • 发帖数18482
  • 经验4836枚
  • 威望5点
  • 贡献值4316点
  • 好评度1115点
  • 社区居民
  • 最爱沙发
  • 忠实会员
  • 终身成就
1楼#
发布于:2018-12-21 14:26
我是编辑 userchrome.css 来设置宽度的:
.tabbrowser-tab[fadein]:not([pinned]) {
 max-width:180px !important;
 min-width:80px !important;
}
Firefox More than meets your experience
游客

返回顶部