I preset the background color of the table, such as < bgcolor = # fff >. When wkhtmltopdf is not installed, the preview will display normally, but when wkhtmltopdf is installed, there is no bgcolor. What is this? Of course, I also tried several versions of wkhtmltopdf
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
Hello drt,
try following code for apply background color
background-color:#E0E0E0;
Thank you, but I didn't use CSS, I just defined it in the HTML tag
Then write following code in your table tag
<table style="background-color:#E0E0E0;">
// YOUR CODE HERE.....
</table>
Thank you. It works for the whole table, but I need to mark each line with different colors. Then there is another problem. My font is too small
try this code and put it before your table tag
<style>
tr:nth-child(odd) {
background-color: #FF0000;
}
</style>
非常感谢,起作用了,但是我的html和css技术太差了,想要实现其他的效果我还要继续努力,再次感谢!
Thank you very much, it works, but my HTML and CSS technology is too poor, I have to continue to work hard to achieve other effects, thank you again!
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
0
Mar 25
|
3910 | ||
|
|
1
Mar 25
|
3791 | ||
|
|
2
Jul 24
|
5855 | ||
|
Odoo 13. Don't close a wizard when Click a button
Diselesaikan
|
|
4
Mei 24
|
14350 | |
|
wkhtmltopdf - How to enable local file system access
Diselesaikan
|
|
1
Mei 24
|
5241 |