简体   繁体   中英

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

Below is my Html code

 <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. Not below Production Report.

PS I tried display: 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> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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