我有这个我无法解决的问题,我正在尝试向网站上的某些 div 添加放大/缩小光标,.l 图像有一个很好的放大光标,点击后,新的 .esc div 是加载(作为灯箱)
.l{
cursor: -webkit-zoom-in; cursor: -moz-zoom-in;
}
.esc {
cursor: -webkit-zoom-out; cursor: -moz-zoom-out;
}
#media{
cursor:default;
}
假设#media div 包含在 .esc div 中。#media div 有一些区域实际上什么都没有,在这些区域中,鼠标光标不是:default,而是-webkit-zoom-out。
我还没有找到解决这个问题的方法,知道吗?
-------------------------
|.esc |
| ---------------- |
| | #media | |
| | ----- --- | |
| | | | | | | |
| | | | | | | |
| | | | ----- | |
| | | | * | |
| | | | | |
| | ----- | |
| ---------------- |
-------------------------
* 这里应该是 cursor:default; 但它是-moz-zoom-out
这是一个 jsfiddle:http: //jsfiddle.net/mmbFu/