是否可以更改网络套件调整器(拉选项卡)光标



我尝试将自定义光标添加到我的 webkit 拉选项卡,但似乎无法让它工作。 其他元素,如背景颜色是可变的,但css"cursor"属性是不可变的:

#sessionbuilder::-webkit-resizer {
  background: #000;
  cursor: help !important;
}

编辑

好吧,webkit 的一个简单例子是这个:

<!DOCTYPE html>
<html>
<head>
<style> 
div {
    width: 100px;
    height: 100px;
    background: red;
    -webkit-transition: width 2s; /* For Safari 3.1 to 6.0 */
    transition: width 2s;
    cursor: wait;
}
div:hover {
    width: 300px;
}
</style>
</head>
<body>
<p><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p>
<div></div>
<p>Hover over the div element above, to see the transition effect with a cursor wait.</p>
</body>
</html>


是的。

请参阅:https://developer.mozilla.org/en-US/docs/Web/CSS/cursor

.foo { cursor: crosshair; }
/* use prefixed-value if "zoom-in" isn't supported */
.bar { cursor: -webkit-zoom-in;  cursor: zoom-in; } 
/* standard cursor value as fallback for url() must be provided (doesn't work without) */
.baz { cursor: url(hyper.cur), auto }

最新更新