문제

I have a relativelly well working drop down menu for what I want, but there's one unintended bug that I'm not sure how to resolve. Consider this JSFiddle. The bug is most obvious when you hover over {A}. Because the nest UL has lots of elements it widens to the right, but the parent LI also widens to fit it, which makes its nested A fill the width, which makes the UI expand and contract. How can I keep the parent LI from expanding to the width of the nested UL? The other nested ULs don't show the bug, but that's only because their nested LIs are empty.

올바른 솔루션이 없습니다

다른 팁

is this a static list?

if so just add a class to the

<a class="Afixded">{A} ▾</a>

and then goes into the css

li a.Afixded{width:40px;}

JsFiddle

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top