How to force div to spill outside of ul container on hover?
问题 How can I let an arbitrary div nested within a ul spill outside of the ul , which is set to width: 160px; and overflow-y: hidden; ? I have set it to overflow-y: hidden because the list needs to be scrollable. Here is my list: <ul> <li> color name</li> <div class="tooltip">color name</div> <li> color name</li> <div class="tooltip">color name</div> <li> color name</li> <div class="tooltip">color name</div> ..... </ul> For the names whose text is wider than 160 pixels I want a hover event to