Reputation: 1945
I am trying to add zoom in cursor to table but somehow not working.
<div style="height: 280px;overflow: auto" >
<table class="gridHover ">
<tbody style = "cursor: zoom-in" >
<tr >
<td>FFF</td>
<td>FFF</td>
<td>FFF</td>
<td>FFF</td>
</tr>
<tr >
<td>FFF</td>
<td>FFF</td>
<td>FFF</td>
<td>FFF</td>
</tr>
<tr >
<td>FFF</td>
<td>FFF</td>
<td>FFF</td>
<td>FFF</td>
</tr>
</tbody>
</table>
I think its because of that gridHover class. Can someone tell how to use zoom in cursor. I want to make it work on IE, chrome and FF. Here is fiddle
Upvotes: 1
Views: 2863
Reputation: 4812
The zoom-in cursor is still browser specific for mozilla and webkit:
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
might try the same for IE though, but these are the ones i know of
As can be read at MDN the browser support for IE is lacking.
Also, here is an alternative way to try to fix it: image cursor (it's the exact same problem btw)
Upvotes: 4
Reputation: 797
Here is the fixed JSFiddle
This is the new code:
<div style="height: 280px;overflow: auto">
<table class="gridHover">
<tbody style="cursor: -webkit-zoom-in; cursor: -moz-zoom-in;">
<tr>
<td>FFF</td>
<td>FFF</td>
<td>FFF</td>
<td>FFF</td>
</tr>
<tr >
<td>FFF</td>
<td>FFF</td>
<td>FFF</td>
<td>FFF</td>
</tr>
<tr>
<td>FFF</td>
<td>FFF</td>
<td>FFF</td>
<td>FFF</td>
</tr>
</tbody>
</table>
Upvotes: 2
Reputation: 2200
I'm not sure, but I think its broken in chrome.
test it on:
it also doesn't work...
Upvotes: 3