我想要实现的是把上的光标位置悬停效果..背景颜色
这里有一个小提琴:http://jsfiddle.net/onnmwyhd/
这是我的代码。
HTML
<div id="container"></div>
CSS
#container{
background-color: #6fc39a;
height:200px;
}
JQUERY
$("#container").mousemove(function(e){
var x = e.pageX - this.offsetLeft;
var y = e.pageY - this.offsetTop;
$(this).html("X: " + x + " Y: " + y);
});
这是我想对POSI颜色的光标的灰....
background-image: -webkit-linear-gradient(-35deg, #35a28e, #a8e4a5);
有你看了 “梯度跟随” 功能上线98 Ø f DRM门户网站的theme.js文件? –
@JonathanBowman我现在在这上面,先生...... –