我尝试将自定义光标添加到我的webkit pulltab中,但似乎无法使其正常工作。其他元素,如背景颜色可以改变,但css"光标"财产不可变:
#sessionbuilder::-webkit-resizer {
background: #000;
cursor: help !important;
}
答案 0 :(得分:0)
修改强>
嗯,这是一个简单的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>
&#13;
是
请参阅: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 }