Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想制作一个用户脚本或样式表来重新格式化某些页面,以便在 Firefox 侧边栏中获得更佳的查看效果。有没有办法告诉侧边栏中已经加载了一个页面?纯 CSS 解决方案会很棒,但 JavaScript 也完全可以接受。
要为窄显示(如侧边栏)设置不同的页面样式,您可以使用css3 媒体查询。