简体   繁体   English

如何显示下拉菜单中列表元素中的内联锚元素

[英]How to Display anchor elements Inline which are in a list element in dropdown-menu

Below is my Html code 以下是我的HTML代码

 <li ng-show="authentication.isAuth" ng-repeat="menu in menuList" class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{menu.title}} <span class="caret"></span></a> <ul class="dropdown-menu"> <li ng-repeat="li in menu.subMenuList"> <a href="{{li.state}}">{{li.title}} </a> <a class="fa fa-pencil-square-o" href="{{li.stateh}}"></a> </li> </ul> </li> 

以下是我的导航栏的外观

I want the edit icon to be adjacent to F/R production Report. 我希望编辑图标与F / R生产报告相邻。 Not below Production Report. 不低于生产报告。

PS I tried display: inline-block; 我试过的PS显示:inline-block; display: inline; 显示:内联; but both are not working. 但两者都不起作用。

Have you triend to simply place the tag inside the previous tag? 您是否倾向于仅将标签放置在先前的标签内?

 <li ng-show="authentication.isAuth" ng-repeat="menu in menuList" class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{menu.title}} <span class="caret"></span></a> <ul class="dropdown-menu"> <li ng-repeat="li in menu.subMenuList"> <a href="{{li.state}}">{{li.title}} <a class="fa fa-pencil-square-o" href="{{li.stateh}}"></a> </a> </li> </ul> </li> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM