div放在表格单元格中,并且设置鼠标移入的样式,但是有一部分鼠标没有出现手指

https://img4.mukewang.com/5c6baf0d000169ea03070945.jpg

当鼠标放在div 上的时候,应该出现手指,如下图
https://img4.mukewang.com/5c6baf1e0001069001840191.jpg

但是再表格里的情况是:
https://img4.mukewang.com/5c6baf2200016f0201910192.jpg

只有一部分位置会出现:

https://img2.mukewang.com/5c6baf2a0001799401500149.jpg


求大神!!


侃侃尔雅
浏览 439回答 1
1回答

哔哔one

你把td设置个背景色就能看出原因了,后面的td把前面的红圆圈盖住了最好调整下结构,红圆圈不在table里面,table当作背景,div在外面!<div class="main">&nbsp; &nbsp; <table>&nbsp; &nbsp; &nbsp; &nbsp; <tr>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; </tr>&nbsp; &nbsp; &nbsp; &nbsp; <tr>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; </tr>&nbsp; &nbsp; &nbsp; &nbsp; <tr>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; </tr>&nbsp; &nbsp; &nbsp; &nbsp; <tr>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td></td>&nbsp; &nbsp; &nbsp; &nbsp; </tr>&nbsp; &nbsp; </table>&nbsp; &nbsp; <div class="content">&nbsp; &nbsp; &nbsp; &nbsp; <div></div>&nbsp; &nbsp; &nbsp; &nbsp; <div></div>&nbsp; &nbsp; &nbsp; &nbsp; <div></div>&nbsp; &nbsp; &nbsp; &nbsp; <div></div>&nbsp; &nbsp; &nbsp; &nbsp; <div></div>&nbsp; &nbsp; </div></div>
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript