[英]How to align div on the same line Qweb report . Odoo 14
I want to align 2 div in the same line, I used class row and col-lg-, but still not working.我想在同一行对齐 2 个 div,我使用了 class 行和 col-lg-,但仍然无法正常工作。 What's wrong?
怎么了? Thanks
谢谢
<div class="container">
<div class="row" style="align-items-center">
<div class="col-lg-6">1er element</div>
<div class="col-lg-6">2nd element</div>
</div>
</div>
you could try the following:您可以尝试以下方法:
<div class="container">
<div class="row" style="align-items-center">
<div class="col-md-6">1er element</div>
<div class="col-md-6">2nd element</div>
</div>
</div>
don't hesitate to let us know if it's working.不要犹豫,让我们知道它是否有效。
You can use the same classes used in sale order report:您可以使用销售订单报告中使用的相同类:
<div class="row text-center">
<div class="col-auto col-6">1er element</div>
<div class="col-auto col-6">2nd element</div>
</div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.