[英]AngularJS menu layout desktop and mobile responsive
I have website with AngularJS with this menu 我有使用此菜单的AngularJS网站
but this is what happen when it loaded in mobile 但这是在手机中加载时发生的情况
Can I achieve layout like this in mobile? 我可以在手机中实现这样的布局吗?
this is html Code 这是HTML代码
<div flex="nogrow">
<div layout="row" layout-align="end center">
<div class="dashboard-button-right pointer" ng-repeat="btn in dashboardButtons" ng-click="dashboardClick(btn, $event)"
ng-class="{'{{btn.active_class}}': btn.active === true, '{{btn.class}}': btn.active === false}">
{{btn.label}}
</div>
</div>
</div>
Thanks before 之前感谢
You can use media queries and also mention bootstrap xs columns . 您可以使用媒体查询 ,还可以提及bootstrap xs列 。 If you are making it responsive on xtra small screen , you need to use bootstrap column for alignment then you can use css media queries to style them. 如果要使其在Xtra小屏幕上响应,则需要使用bootstrap列进行对齐,然后可以使用CSS媒体查询来设置其样式。 In fact for a responsive website , you need to define its behavior and align it on all 4 screens (lg,md,sm,xs). 实际上,对于自适应网站 ,您需要定义其行为并将其在所有4个屏幕(lg,md,sm,xs)上对齐 。
I'm assuming you know bootstrap grid system already. 我假设您已经知道引导网格系统 。 I hope it solved your question and if you need to ask something let me know. 我希望它能解决您的问题,如果您需要提出问题,请告诉我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.