当前位置:Gxlcms > html代码 > ie中div的cursor与table的兼容问题

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

时间:2021-07-01 10:21:17 帮助过:24人阅读

<html> 
 <head></head>  
 <body>  
 <p id="a" style="position: relative;"> 
 <table id="b" style="position:absolute;left: 0;top: 0;"> 
 <tr> <td>aaaaa</td><td>bbbb</td> 
 </tr> 
 </table> <p id="c" style="position:absolute;left: 0;top: 0;cursor: pointer;height:24px;width:82px;">
 </p>  
 </p>  
 </body>  
 </html>

在ie中就可以看到鼠标置于文字上hand会变成I的手势问题 在firefox,chrome就没有问题

加背景透明

<html>
<head>
</head>
<body>
<p id="a" style="position: relative;">
<table id="b" style="position:absolute;left: 0;top: 0;">
<tr><td>aaaaa</td><td>bbbb</td>
</tr>
</table>
<p id="c" style="position:absolute;left: 0;top: 0;cursor: pointer;height:24px;width:82px; background:#fff; filter:alpha(opacity=1); ">
 </p></p>
 </body>
 </html>

人气教程排行