Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的问题是这支笔的悬停状态:
我需要将选取框垂直居中,但是,当我使用 时line-height,悬停状态没有响应或有时会发痒,我也不想使用top属性。
line-height
top
这是更正的笔链接
<div class="kayan">Contacts</div>是重叠的<div class="right_del"></div>,所以从不抛出悬停事件。将z-index:2css 属性添加到.right_del.
<div class="kayan">Contacts</div>
<div class="right_del"></div>
z-index:2
.right_del
看到这个jsFiddle