如何更改Microsoft Edge的滚动条的颜色? [英] How to change the color of the scrollbar for Microsoft Edge?

查看:3483
本文介绍了如何更改Microsoft Edge的滚动条的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让我的网站的滚动条变暗,并自定义它。它可以在Chrome上使用 :: - webkit-scrollbar ,但它不能在Edge上工作 - 我找不到在Microsoft Edge上更改滚动条颜色的方法。 p>

有谁知道如何做到这一点?请帮助:)

解决方案

目前没有办法在Microsoft Edge中执行此操作。在IE中有供应商特定的,非标准的,CSS属性来实现这一点。这些在MS Edge中被删除,因为它们可以用于定位浏览器并破坏与预期旧IE行为的网站(属性非常旧)的兼容性。不幸的是,在CSS中没有很好的标准属性来替代这些。



有一个 UserVoice建议,您可以投票以添加一种方法来滚动样式滚动条。在规划EdgeHTML引擎中的功能优先级时,我们将其用作输入之一。


I want make the scrollbar for my site dark and customize it. It works on Chrome with ::-webkit-scrollbar but it doesn't work on Edge -- I couldn't find way changing the scrollbar color on Microsoft Edge.

Does anyone know how to do this? Please help :)

解决方案

There is currently no way to do this in Microsoft Edge. In IE there were vendor specific, non-standard, CSS properties to achieve this. These were removed in MS Edge as they could be used to target the browser and break compatibility with sites that were expecting old IE behaviour (the properties are very old). Unfortunately there are no good standard properties in CSS to replace these at the moment.

There is a UserVoice suggestion you can vote on to add a method to style scrollbars. We use this as one of the inputs when planning feature priorities in the EdgeHTML engine.

这篇关于如何更改Microsoft Edge的滚动条的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆