Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
11141 มุมมอง

I want to use the power of CSS Flexbox when creating a PDF report. How to apply CSS Flexbox in QWeb? 

อวตาร
ละทิ้ง

Please be specific.

คำตอบที่ดีที่สุด

You need to use an older syntax because the reporting system is using QtWebKit 2.3 (it's 10 years old).

Source

.foo {
    display: -webkit-box; /* wkhtmltopdf uses this one */
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center; /* wkhtmltopdf uses this one */
    -webkit-justify-content: center;
            justify-content: center;
}

There should be a way to use the new syntax on Odoo but I can't help you, if you find a solution let me know.

อวตาร
ละทิ้ง

Thanks

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 24
1294
2
พ.ค. 24
2812
Sale Order PDF Report แก้ไขแล้ว
3
ก.พ. 24
2433
2
ก.พ. 24
2275
2
พ.ย. 22
5273