Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2988 Lượt xem

Hi,

How could I set text as a watermark in an Odoo 12 custom report?

Im trying like this but it doesn't work, the div appears over the content hiding all the information.

<div t-att-style="'position:absolute;opacity:0.1;z-index:1000;transform:rotate(300deg);-webkit-transform:rotate(300deg);width:150%;'">
<p style="font-size:140px;">CANCELADO</p>
</div>

Thank you in advance 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You need to decrease z-index of the provided code and increase the z-index of the content div.

If content div has no z-index provide it higher then watermark div

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you for your answer, I try like that but doesn't work, I set my div as z-index as -1 and the z-index of the other content as 9999 but nothing changes you have other idea what it could be?

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 12 20
2952
2
thg 9 20
3190
1
thg 10 19
2442
0
thg 3 22
2416
2
thg 10 20
27856