读书人

ie中div的cursor与table的兼容有关问题

发布时间: 2013-09-08 15:21:21 作者: rapoo

ie中div的cursor与table的兼容问题
<html>
<head></head>
<body>
<div id="a" style="position: relative;">

<table id="b" style="position:absolute;left: 0;top: 0;">

<tr>

<td>aaaaa</td><td>bbbb</td>

</tr>

</table>

<div id="c" style="position:absolute;left: 0;top: 0;cursor: pointer;height:24px;width:82px;"></div>
</div>
</body>
</html>



在ie中就可以看到鼠标置于文字上hand会变成I的手势问题 在firefox,chrome就没有问题 cursor
[解决办法]
加背景透明


<html>
<head></head>
<body>
<div id="a" style="position: relative;">

<table id="b" style="position:absolute;left: 0;top: 0;">

<tr>

<td>aaaaa</td><td>bbbb</td>

</tr>

</table>

<div id="c" style="position:absolute;left: 0;top: 0;cursor: pointer;height:24px;width:82px; background:#fff; filter:alpha(opacity=1); "> </div>
</div>
</body>
</html>

读书人网 >CSS

热点推荐