我在Odoo 10 <div class="col-xs-n"> PDF报告中的一个QWeb元素中有一个条形码:
<div class="col-xs-3">
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)" style="width:300px;height:50px;"/>
</div>是否有任何类可以应用于<div>元素,以便将条形码水平中心化?
发布于 2018-02-15 13:07:31
使用引导类文本中心,如下所示。
<div class="col-xs-3 text-center">
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)" style="width:300px;height:50px;"/>
</div>我希望这能帮到你。
发布于 2018-02-16 11:02:03
尝试添加这些类。
有一些本地引导类可用,如下所示:
class="text-center"或
class="pagination-centered"
https://stackoverflow.com/questions/48800020
复制相似问题