如何在Bootstrap-vue中执行Flexbox
我正在使用vue.js
中的Flex框,但是该项目无法执行功能。代码为
<div class="d-flex">
<div class="p-2"><p>Resturants</p></div>
<div class="ml-auto p-2"><b-icon icon="three-dots-vertical"></b-icon></div>
</div>
且输出为输出图像是
您能否详细说明如何解决此任务。
I am using the flex box in vue.js
but the project cannot perform the functionality. the code is
<div class="d-flex">
<div class="p-2"><p>Resturants</p></div>
<div class="ml-auto p-2"><b-icon icon="three-dots-vertical"></b-icon></div>
</div>
and the output is the output image is
can you elaborate how to solve this task.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无法发表评论,所以我会尝试创建答案。
正如其他人所建议的那样,奇怪的是,您的盒子看起来像这样,而没有任何CSS。
可能的是,该盒子正在从其他组件中获取CSS。
在每个VUE组件中,按如下写入标签,
这将仅将CSS应用于该组件。
关于您的问题,您可以做类似的事情
,然后添加CSS。
希望它能有所帮助
Can't comment, so i'll try to create an answer.
As other have suggested, it's strange that your box looks like this, without any css applied on.
What might be, is that the box is taking css from other components.
In every vue component, write the tag as follows
this will apply the css only to that certain component.
Regarding your question, you could do something like this
And then add your css.
Hope it helped