尝试进行多级悬停,所以我的代码背后的前提是将鼠标悬停在显示 iPod 和 iPhone 的 Linea Pro 4 上,然后悬停在显示不同类型产品的 iPod 或 iPhone 上,然后悬停在显示的产品类型上零件号。
我已经尝试了几种 CSS 变体来让它工作......而且我知道我还有很长的路要走,所以任何开始的帮助将不胜感激......这是我的 CSS,后面是我的 HTML 代码
CSS CODE
#ipc_cases ul {list-style-type: none; display: inline-block;}
#ipc_cases ul li > ul{display:none; background: rgb(213, 213, 213)}
#ipc_cases ul li ul li > ul {display:none;}
#ipc_cases li:hover > ul{display: inline-block;}
HTML CODE
<div id="ipc_cases">
<ul>
<li><a>Linea Pro 4</a>
<ul>
<li>iPod
<ul><li>Rugged Case for LP4-POD4 (iPod) GRAY/BLACK, 1D Scanner No MSR
<ul><li>CS-R-LP4-POD4-G/BK</li></ul>
</li>
<li>Rugged Case for LP4-POD4 (iPod) GRAY/BLACK, 1D Scanner with MSR
<ul><li>CS-RMS-LP4-POD4-G/BK</li></ul>
</li>
<li>Rugged Case for LP4C2D-POD4 (iPod) GRAY/BLACK, 2D Scanner No MSR
<ul><li>CS-R-LP4C2D-POD4-G/BK</li></ul>
</li>
<li>Rugged Case for LP4C2D-POD4 (iPod) GRAY/BLACK, 2D Scanner with MSR
<ul><li>CS-RMS-LP4C2D-POD4-G/BK</li></ul>
</li>
</ul>
</li>
<li>iPhone
<ul><li>Rugged Case for LP4-PH4 (iPhone) GRAY/BLACK, 1D Scanner No MSR
<ul><li>CS-R-LP4-PH4-G/BK</li></ul>
</li>
<li>Rugged Case for LP4-PH4 (iPhone) GRAY/BLACK, 1D Scanner with MSR
<ul><li>CS-RMS-LP4-PH4-G/BK</li></ul>
</li>
<li>Rugged Case for LP4C2D-PH4 (iPhone) GRAY/BLACK, 2D Scanner No MSR
<ul><li>CS-R-LP4C2D-PH4-G/BK</li></ul>
</li>
<li>Rugged Case for LP4C2D-PH4 (iPhone) GRAY/BLACK, 2D Scanner with MSR
<ul><li>CS-RMS-LP4C2D-PH4-G/BK</li></ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>