我正在处理导航菜单,该菜单应显示在其子菜单文本和图像旁边。更像是如下图所示。
到目前为止,由于使用正确的css属性,我无法获得所需的结果。
我设置小提琴我希望有些人可以帮助我。我尝试了几种不同的方式和使它工作的不同例子但到目前为止还没有工作。我刚刚浪费了几天时间。
所以我试图让我现在正在处理的Fiddle
保持简单<nav>
<ul>
<li><a href="#">Menu1</a></li>
<li><a href="#">Menu2</a>
<ul>
<li><a href="#">Menu 1</a>
<ul class="block">
<li><div class="div">This block show some text and an image on the right side of the text </div></li>
</ul>
</li>
<li><a href="#">Menu 2</a>
<ul class="block">
<li><div class="div">This block show some text and an image on the right side of the text </div></li>
</ul>
</li>
<li><a href="#">Menu 3</a>
<ul class="block-right">
<li><div class="div-right">This block show some text and an image on the right side of the text </div></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">Menu3</a>
<ul>
<li><a href="#">Menu 2</a></li>
<li><a href="#">Menu 2</a></li>
</ul>
</li>
<li><a href="#">Menu4</a></li>
<li><a href="#">Menu 5</a>
<ul>
<li><a href="#">Menu 1</a>
<ul class="block">
<li><div class="div">This block show some text and an image on the right side of the text </div></li>
</ul>
</li>
<li><a href="#">Menu 2</a>
<ul class="block">
<li><div class="div">This block show some text and an image on the right side of the text </div></li>
</ul>
</li>
<li><a href="#">Menu 3</a>
<ul class="block">
<li><div class="div">This block show some text and an image on the right side of the text </div></li>
</ul>
</li>
</ul>
</li>
</ul>
</nav>
I also worked on this one but i am not able to fix it either posted two days back on stackoverflow